macintosh: ams: replace strict_strtoul() with kstrtoul()
PATCH 1/1 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 Jingoo Han <[email protected]>
--- drivers/macintosh/ams/ams-input.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/macintosh/ams/ams-input.c +5 -1
@@ -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);
Signature · 1 line
1.7.10.4