Re: [PATCH 1/6] leds: leds-bd2802: replace strict_strtoul() with kstrtoul()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 23, 2012 at 5:23 AM, Jingoo Han <jg1.han@xxxxxxxxxxx> wrote:
> The usage of strict_strtoul() is not preferred, because
> strict_strtoul() is obsolete. Thus, kstrtoul() should be
> used.
>

I will push this patchset to my for-next soon.

Thanks,
-Bryan

> Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx>
> ---
>  drivers/leds/leds-bd2802.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/leds/leds-bd2802.c b/drivers/leds/leds-bd2802.c
> index 89ca6a2..ebdfe29 100644
> --- a/drivers/leds/leds-bd2802.c
> +++ b/drivers/leds/leds-bd2802.c
> @@ -328,7 +328,7 @@ static ssize_t bd2802_store_reg##reg_addr(struct device *dev,               \
>         int ret;                                                        \
>         if (!count)                                                     \
>                 return -EINVAL;                                         \
> -       ret = strict_strtoul(buf, 16, &val);                            \
> +       ret = kstrtoul(buf, 16, &val);                                  \
>         if (ret)                                                        \
>                 return ret;                                             \
>         down_write(&led->rwsem);                                        \
> @@ -492,7 +492,7 @@ static ssize_t bd2802_store_##attr_name(struct device *dev,         \
>         int ret;                                                        \
>         if (!count)                                                     \
>                 return -EINVAL;                                         \
> -       ret = strict_strtoul(buf, 16, &val);                            \
> +       ret = kstrtoul(buf, 16, &val);                                  \
>         if (ret)                                                        \
>                 return ret;                                             \
>         down_write(&led->rwsem);                                        \
> --
> 1.7.1
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux