Commit f7c65af5 authored by Daniel Walter's avatar Daniel Walter Committed by Linus Torvalds

drivers/scsi: replace strict_strto calls

Replace obsolete strict_strto with more appropriate kstrto calls
Signed-off-by: default avatarDaniel Walter <dwalter@google.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 164109e3
...@@ -4213,9 +4213,9 @@ static ssize_t pmcraid_store_log_level( ...@@ -4213,9 +4213,9 @@ static ssize_t pmcraid_store_log_level(
{ {
struct Scsi_Host *shost; struct Scsi_Host *shost;
struct pmcraid_instance *pinstance; struct pmcraid_instance *pinstance;
unsigned long val; u8 val;
if (strict_strtoul(buf, 10, &val)) if (kstrtou8(buf, 10, &val))
return -EINVAL; return -EINVAL;
/* log-level should be from 0 to 2 */ /* log-level should be from 0 to 2 */
if (val > 2) if (val > 2)
......
...@@ -910,9 +910,9 @@ sdev_store_queue_ramp_up_period(struct device *dev, ...@@ -910,9 +910,9 @@ sdev_store_queue_ramp_up_period(struct device *dev,
const char *buf, size_t count) const char *buf, size_t count)
{ {
struct scsi_device *sdev = to_scsi_device(dev); struct scsi_device *sdev = to_scsi_device(dev);
unsigned long period; unsigned int period;
if (strict_strtoul(buf, 10, &period)) if (kstrtouint(buf, 10, &period))
return -EINVAL; return -EINVAL;
sdev->queue_ramp_up_period = msecs_to_jiffies(period); sdev->queue_ramp_up_period = msecs_to_jiffies(period);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment