提交 71d7225c 编写于 作者: J Jingoo Han 提交者: Linus Torvalds

drivers/video/backlight/adp5520_bl.c: use kstrtoul()

The usage of strict_strtoul() is not preferred. Thus, kstrtoul
should be used.
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Cc: Michael Hennerich <michael.hennerich@analog.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 dc406f56
...@@ -160,7 +160,7 @@ static ssize_t adp5520_store(struct device *dev, const char *buf, ...@@ -160,7 +160,7 @@ static ssize_t adp5520_store(struct device *dev, const char *buf,
unsigned long val; unsigned long val;
int ret; int ret;
ret = strict_strtoul(buf, 10, &val); ret = kstrtoul(buf, 10, &val);
if (ret) if (ret)
return ret; return ret;
...@@ -214,7 +214,7 @@ static ssize_t adp5520_bl_daylight_max_store(struct device *dev, ...@@ -214,7 +214,7 @@ static ssize_t adp5520_bl_daylight_max_store(struct device *dev,
struct adp5520_bl *data = dev_get_drvdata(dev); struct adp5520_bl *data = dev_get_drvdata(dev);
int ret; int ret;
ret = strict_strtoul(buf, 10, &data->cached_daylight_max); ret = kstrtoul(buf, 10, &data->cached_daylight_max);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册