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>
{
struct Scsi_Host *shost;
struct pmcraid_instance *pinstance;
{
struct Scsi_Host *shost;
struct pmcraid_instance *pinstance;
- if (strict_strtoul(buf, 10, &val))
+ if (kstrtou8(buf, 10, &val))
return -EINVAL;
/* log-level should be from 0 to 2 */
if (val > 2)
return -EINVAL;
/* log-level should be from 0 to 2 */
if (val > 2)
const char *buf, size_t count)
{
struct scsi_device *sdev = to_scsi_device(dev);
const char *buf, size_t count)
{
struct scsi_device *sdev = to_scsi_device(dev);
- if (strict_strtoul(buf, 10, &period))
+ if (kstrtouint(buf, 10, &period))
return -EINVAL;
sdev->queue_ramp_up_period = msecs_to_jiffies(period);
return -EINVAL;
sdev->queue_ramp_up_period = msecs_to_jiffies(period);