summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-19 09:06:16 +0200
committerAnton Vorontsov <anton@enomsg.org>2013-08-09 23:49:49 +0200
commitf107ae11f04aa32c9ae1e6629e9a5b886a7034bd (patch)
treed0e7d5007d7cc5d0e0e014d18d8248253ce18aa5 /drivers
parentpower: Add APM X-Gene system reboot driver (diff)
downloadlinux-f107ae11f04aa32c9ae1e6629e9a5b886a7034bd.tar.xz
linux-f107ae11f04aa32c9ae1e6629e9a5b886a7034bd.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/power_supply_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index 29178f78d73c..44420d1e9094 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -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;