mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
power_supply: Replace strict_strtol() with kstrtol()
The usage of strict_strtol() is not preferred, because strict_strtol() is obsolete. Thus, kstrtol() should be used. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
67778e0eda
commit
f107ae11f0
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ static ssize_t power_supply_store_property(struct device *dev,
|
|||
long long_val;
|
||||
|
||||
/* TODO: support other types than int */
|
||||
ret = strict_strtol(buf, 10, &long_val);
|
||||
ret = kstrtol(buf, 10, &long_val);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue