]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drivers/scsi: replace strict_strto calls
authorDaniel Walter <dwalter@google.com>
Thu, 26 Jun 2014 00:43:15 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 27 Jun 2014 04:21:48 +0000 (14:21 +1000)
Replace obsolete strict_strto with more appropriate kstrto calls

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/scsi/pmcraid.c
drivers/scsi/scsi_sysfs.c

index 017f8b9554e53de6c64ae49f73d79e348a97dfd9..6f3275d020a044abd3607e9ca6b4f114dd45200f 100644 (file)
@@ -4213,9 +4213,9 @@ static ssize_t pmcraid_store_log_level(
 {
        struct Scsi_Host *shost;
        struct pmcraid_instance *pinstance;
-       unsigned long val;
+       u8 val;
 
-       if (strict_strtoul(buf, 10, &val))
+       if (kstrtou8(buf, 10, &val))
                return -EINVAL;
        /* log-level should be from 0 to 2 */
        if (val > 2)
index 5f36788705bab2c83c8e1b01130dc34fe6130485..4a6f524a63b902697e885de1e56587fbac126e75 100644 (file)
@@ -885,9 +885,9 @@ sdev_store_queue_ramp_up_period(struct device *dev,
                                const char *buf, size_t count)
 {
        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;
 
        sdev->queue_ramp_up_period = msecs_to_jiffies(period);