staging: line6: variax.c: Eliminated remaining strict_stroul()s
authorJohannes Thumshirn <morbidrsa@googlemail.com>
Tue, 14 Aug 2012 18:22:48 +0000 (20:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 23:46:34 +0000 (16:46 -0700)
Eliminated remaining calls to strict_stroul() and replaced them with
strict_kstrtou8().

Signed-off-by: Johannes Thumshirn <morbidrsa@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/variax.c

index bb99ee4919e7e7af0c95d8ff0a8090de5f13615f..f97416b1de5459e8054fcc644245f4a192147d6c 100644 (file)
@@ -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;