From: Guenter Roeck Date: Mon, 16 Jan 2012 18:14:54 +0000 (-0800) Subject: hwmon: (pmbus) Replace strict_strtol with kstrtol X-Git-Tag: v3.4-rc1~167^2~111 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0117c3f24523166ca764575c0e486887b7e33c2b;p=karo-tx-linux.git 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 Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c index d89b33967a85..f571388d88fd 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);