Skip to content

Commit

Permalink
staging: line6: Changed some strict_strtouls to kstrtou8
Browse files Browse the repository at this point in the history
Adjusted strict_strtoul calls to kstrtou8 in order to take the changes of
line6_transmit_parameter() into account.

Signed-off-by: Johannes Thumshirn <morbidrsa@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Johannes Thumshirn authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent 2471c09 commit 1383ec4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/line6/variax.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ static ssize_t variax_set_volume(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;

Expand Down Expand Up @@ -418,10 +418,10 @@ static ssize_t variax_set_tone(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;

Expand Down

0 comments on commit 1383ec4

Please sign in to comment.