mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
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 <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
b3789a0de2
commit
0117c3f245
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue