diff options
Diffstat (limited to 'drivers/hwmon/adcxx.c')
-rw-r--r-- | drivers/hwmon/adcxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adcxx.c b/drivers/hwmon/adcxx.c index b2cacbe707a8..ceb24a365176 100644 --- a/drivers/hwmon/adcxx.c +++ b/drivers/hwmon/adcxx.c | |||
@@ -125,7 +125,7 @@ static ssize_t adcxx_set_max(struct device *dev, | |||
125 | struct adcxx *adc = spi_get_drvdata(spi); | 125 | struct adcxx *adc = spi_get_drvdata(spi); |
126 | unsigned long value; | 126 | unsigned long value; |
127 | 127 | ||
128 | if (strict_strtoul(buf, 10, &value)) | 128 | if (kstrtoul(buf, 10, &value)) |
129 | return -EINVAL; | 129 | return -EINVAL; |
130 | 130 | ||
131 | if (mutex_lock_interruptible(&adc->lock)) | 131 | if (mutex_lock_interruptible(&adc->lock)) |