* + backlight-adp8860-use-kstrtoul.patch added to -mm tree
@ 2012-05-15 20:22 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2012-05-15 20:22 UTC (permalink / raw)
To: mm-commits; +Cc: jg1.han, michael.hennerich, rpurdie
The patch titled
Subject: drivers/video/backlight/adp8860_bl.c: use kstrtoul()
has been added to the -mm tree. Its filename is
backlight-adp8860-use-kstrtoul.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Jingoo Han <jg1.han@samsung.com>
Subject: drivers/video/backlight/adp8860_bl.c: use kstrtoul()
The usage of strict_strtoul() is not preferred. Thus, kstrtoul should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Michael Hennerich <michael.hennerich@analog.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/video/backlight/adp8860_bl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff -puN drivers/video/backlight/adp8860_bl.c~backlight-adp8860-use-kstrtoul drivers/video/backlight/adp8860_bl.c
--- a/drivers/video/backlight/adp8860_bl.c~backlight-adp8860-use-kstrtoul
+++ a/drivers/video/backlight/adp8860_bl.c
@@ -451,7 +451,7 @@ static ssize_t adp8860_store(struct devi
unsigned long val;
int ret;
- ret = strict_strtoul(buf, 10, &val);
+ ret = kstrtoul(buf, 10, &val);
if (ret)
return ret;
@@ -501,7 +501,7 @@ static ssize_t adp8860_bl_l1_daylight_ma
struct device_attribute *attr, const char *buf, size_t count)
{
struct adp8860_bl *data = dev_get_drvdata(dev);
- int ret = strict_strtoul(buf, 10, &data->cached_daylight_max);
+ int ret = kstrtoul(buf, 10, &data->cached_daylight_max);
if (ret)
return ret;
@@ -608,7 +608,7 @@ static ssize_t adp8860_bl_ambient_light_
uint8_t reg_val;
int ret;
- ret = strict_strtoul(buf, 10, &val);
+ ret = kstrtoul(buf, 10, &val);
if (ret)
return ret;
_
Subject: Subject: drivers/video/backlight/adp8860_bl.c: use kstrtoul()
Patches currently in -mm which might be from jg1.han@samsung.com are
linux-next.patch
backlight-adp8860-use-kstrtoul.patch
backlight-adp8870-use-kstrtoul.patch
backlight-adp5520-use-kstrtoul.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-15 20:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-15 20:22 + backlight-adp8860-use-kstrtoul.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.