Merge tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[firefly-linux-kernel-4.4.55.git] / drivers / hwmon / emc1403.c
index cd2a6e437aecba36d2fa6f6a7022bfcd40e29d76..270ffab711cb40a1d0d8714ba2224ef6172a641c 100644 (file)
@@ -80,7 +80,7 @@ static ssize_t store_temp(struct device *dev,
        unsigned long val;
        int retval;
 
-       if (strict_strtoul(buf, 10, &val))
+       if (kstrtoul(buf, 10, &val))
                return -EINVAL;
        retval = i2c_smbus_write_byte_data(client, sda->index,
                                        DIV_ROUND_CLOSEST(val, 1000));
@@ -98,7 +98,7 @@ static ssize_t store_bit(struct device *dev,
        unsigned long val;
        int retval;
 
-       if (strict_strtoul(buf, 10, &val))
+       if (kstrtoul(buf, 10, &val))
                return -EINVAL;
 
        mutex_lock(&data->mutex);
@@ -151,7 +151,7 @@ static ssize_t store_hyst(struct device *dev,
        int hyst;
        unsigned long val;
 
-       if (strict_strtoul(buf, 10, &val))
+       if (kstrtoul(buf, 10, &val))
                return -EINVAL;
 
        mutex_lock(&data->mutex);