diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c index 7f1e90e14411e85b35c88d0fb35fc90cb2610614..3d1ada68c29da02cffbb8850708b1f55f484bb73 100644 --- a/drivers/staging/line6/midi.c +++ b/drivers/staging/line6/midi.c @@ -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; diff --git a/drivers/staging/line6/midi.h b/drivers/staging/line6/midi.h index b73a025d8be922976d045e7cebc0bcdee29a1636..2c0a66343ca5101feb89385fb4945da8c20d61c3 100644 --- a/drivers/staging/line6/midi.h +++ b/drivers/staging/line6/midi.h @@ -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.