From: Johannes Thumshirn Date: Tue, 14 Aug 2012 18:22:48 +0000 (+0200) Subject: staging: line6: variax.c: Eliminated remaining strict_stroul()s X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9291975d6647794710553630c2613b5658c81d3f;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/line6/variax.c b/drivers/staging/line6/variax.c index bb99ee4919e7..f97416b1de54 100644 --- a/drivers/staging/line6/variax.c +++ b/drivers/staging/line6/variax.c @@ -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;