提交 7033b64b 编写于 作者: J Jingoo Han 提交者: Benjamin Herrenschmidt

macintosh/ams: Replace strict_strtoul() with kstrtoul()

The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 7191b615
......@@ -118,8 +118,12 @@ static ssize_t ams_input_store_joystick(struct device *dev,
{
unsigned long enable;
int error = 0;
int ret;
if (strict_strtoul(buf, 0, &enable) || enable > 1)
ret = kstrtoul(buf, 0, &enable);
if (ret)
return ret;
if (enable > 1)
return -EINVAL;
mutex_lock(&ams_input_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册