diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-01-16 10:14:54 -0800 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 18:26:43 -0700 |
commit | 0117c3f24523166ca764575c0e486887b7e33c2b (patch) | |
tree | 07be3cff9e5712374e67f82511b0380d6e38feeb /drivers/hwmon/pmbus/pmbus_core.c | |
parent | b3789a0de229b4e9cc6d2531c7cbcdb5424a37b8 (diff) | |
download | op-kernel-dev-0117c3f24523166ca764575c0e486887b7e33c2b.zip op-kernel-dev-0117c3f24523166ca764575c0e486887b7e33c2b.tar.gz |
hwmon: (pmbus) Replace strict_strtol with kstrtol
strict_strtol is deprecated and results in a checkpatch warning.
Replace it with kstrtol.
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/pmbus_core.c')
-rw-r--r-- | drivers/hwmon/pmbus/pmbus_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c index d89b339..f571388 100644 --- a/drivers/hwmon/pmbus/pmbus_core.c +++ b/drivers/hwmon/pmbus/pmbus_core.c @@ -782,7 +782,7 @@ static ssize_t pmbus_set_sensor(struct device *dev, int ret; u16 regval; - if (strict_strtol(buf, 10, &val) < 0) + if (kstrtol(buf, 10, &val) < 0) return -EINVAL; mutex_lock(&data->update_lock); |