diff options
author | Johannes Thumshirn <morbidrsa@googlemail.com> | 2012-08-14 18:22:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-14 23:46:34 (GMT) |
commit | 9291975d6647794710553630c2613b5658c81d3f (patch) | |
tree | 10c81337d15ac00e2e3a800fc7c2cf8d9c7ebabb /drivers | |
parent | 858c8ada41c5ff9700f23c6b41adb9586f2983b8 (diff) | |
download | linux-fsl-qoriq-9291975d6647794710553630c2613b5658c81d3f.tar.xz |
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 <morbidrsa@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/line6/variax.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/line6/variax.c b/drivers/staging/line6/variax.c index bb99ee4..f97416b 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; |