[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130809215050.GF12638@lizard.sbx05730.santaca.wayport.net>
Date: Fri, 9 Aug 2013 14:50:50 -0700
From: Anton Vorontsov <anton@...msg.org>
To: Jingoo Han <jg1.han@...sung.com>
Cc: David Woodhouse <dwmw2@...radead.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] power: power: replace strict_strtol() with kstrtol()
On Fri, Jul 19, 2013 at 04:06:16PM +0900, Jingoo Han wrote:
> 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@...sung.com>
> ---
Applied, thanks.
> drivers/power/power_supply_sysfs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
> index 29178f7..44420d1 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;
>
> --
> 1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists