diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-19 11:06:16 +0400 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-08-10 01:49:49 +0400 |
commit | f107ae11f04aa32c9ae1e6629e9a5b886a7034bd (patch) | |
tree | d0e7d5007d7cc5d0e0e014d18d8248253ce18aa5 /drivers/power | |
parent | 67778e0eda37ae0cde60fa190bfa883ec403fdbf (diff) | |
download | linux-f107ae11f04aa32c9ae1e6629e9a5b886a7034bd.tar.xz |
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/power')
-rw-r--r-- | drivers/power/power_supply_sysfs.c | 2 |
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; |