staging: line6: variax.c: Eliminated remaining strict_stroul()s
PATCH 1/1 staging: line6: variax.c: Eliminated remaining strict_stroul()s
Eliminated remaining calls to strict_stroul() and replaced them with strict_kstrtou8().
Signed-off-by Johannes Thumshirn <[email protected]>
--- drivers/staging/line6/variax.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/line6/variax.c +4 -4
@@ -353,10 +353,10 @@ static ssize_t variax_set_model(struct device *dev, {struct usb_line6_variax *variax =usb_get_intfdata (to_usb_interface (dev)); -unsigned long value; +u8 value;int ret; - ret =strict_strtoul (buf,10 , &value); + ret =kstrtou8 (buf,10 , &value);if (ret)return ret;
@@ -387,10 +387,10 @@ static ssize_t variax_set_active(struct device *dev, {struct usb_line6_variax *variax =usb_get_intfdata (to_usb_interface (dev)); -unsigned long value; +u8 value;int ret; - ret =strict_strtoul (buf,10 , &value); + ret =kstrtou8 (buf,10 , &value);if (ret)return ret;
Signature · 1 line
1.7.11.2
Quoted 7 lines · Johannes Thumshirn
Eliminated remaining calls to
strict_stroul()and replaced them withstrict_kstrtou8().Signed-off-by Johannes Thumshirn <[email protected]>--- drivers/staging/line6/variax.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Commit description is wrong:
s/strict_kstrtou8/kstrtou8/
Reviewed-by Stefan Hajnoczi <[email protected]>