Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f107ae11 authored by Jingoo Han's avatar Jingoo Han Committed by Anton Vorontsov
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarAnton Vorontsov <anton@enomsg.org>
parent 67778e0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;