Commit 4d85fae0 authored by Andor Daam's avatar Andor Daam Committed by Greg Kroah-Hartman

Staging: line6/midi.c: Fixed call of obsolete function strict_strtoul

The function strict_strtoul is obsolete and should be replaced by the
new kstrto* functions.

The variable midi_mask_transmit is only used as unsigned short and the
datatypes of all affected variables were adjusted accordingly.
Signed-off-by: default avatarAndor Daam <andor.daam@googlemail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2f30866f
......@@ -307,10 +307,10 @@ static ssize_t midi_set_midi_mask_transmit(struct device *dev,
{
struct usb_interface *interface = to_usb_interface(dev);
struct usb_line6 *line6 = usb_get_intfdata(interface);
unsigned long value;
unsigned short value;
int ret;
ret = strict_strtoul(buf, 10, &value);
ret = kstrtou16(buf, 10, &value);
if (ret)
return ret;
......
......@@ -57,7 +57,7 @@ struct snd_line6_midi {
/**
Bit mask for output MIDI channels.
*/
int midi_mask_transmit;
unsigned short midi_mask_transmit;
/**
Bit mask for input MIDI channels.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment