mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
staging: line6: Changed some strict_strtouls to kstrtou8
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>
This commit is contained in:
parent
2471c09339
commit
1383ec4dad
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue