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>
This commit is contained in:
parent
858c8ada41
commit
9291975d66
|
@ -353,10 +353,10 @@ static ssize_t variax_set_model(struct device *dev,
|
||||||
{
|
{
|
||||||
struct usb_line6_variax *variax =
|
struct usb_line6_variax *variax =
|
||||||
usb_get_intfdata(to_usb_interface(dev));
|
usb_get_intfdata(to_usb_interface(dev));
|
||||||
unsigned long value;
|
u8 value;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = strict_strtoul(buf, 10, &value);
|
ret = kstrtou8(buf, 10, &value);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
@ -387,10 +387,10 @@ static ssize_t variax_set_active(struct device *dev,
|
||||||
{
|
{
|
||||||
struct usb_line6_variax *variax =
|
struct usb_line6_variax *variax =
|
||||||
usb_get_intfdata(to_usb_interface(dev));
|
usb_get_intfdata(to_usb_interface(dev));
|
||||||
unsigned long value;
|
u8 value;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = strict_strtoul(buf, 10, &value);
|
ret = kstrtou8(buf, 10, &value);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue