Commit f107ae11f04aa32c9ae1e6629e9a5b886a7034bd

Authored by Jingoo Han
Committed by Anton Vorontsov
1 parent 67778e0eda

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 <jg1.han@samsung.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/power/power_supply_sysfs.c
... ... @@ -118,7 +118,7 @@
118 118 long long_val;
119 119  
120 120 /* TODO: support other types than int */
121   - ret = strict_strtol(buf, 10, &long_val);
  121 + ret = kstrtol(buf, 10, &long_val);
122 122 if (ret < 0)
123 123 return ret;
124 124