Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Andor Daam <andor.daam@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Andor Daam and committed by
Greg Kroah-Hartman
4d85fae0 2f30866f

+3 -3
+2 -2
drivers/staging/line6/midi.c
··· 307 307 { 308 308 struct usb_interface *interface = to_usb_interface(dev); 309 309 struct usb_line6 *line6 = usb_get_intfdata(interface); 310 - unsigned long value; 310 + unsigned short value; 311 311 int ret; 312 312 313 - ret = strict_strtoul(buf, 10, &value); 313 + ret = kstrtou16(buf, 10, &value); 314 314 if (ret) 315 315 return ret; 316 316
+1 -1
drivers/staging/line6/midi.h
··· 57 57 /** 58 58 Bit mask for output MIDI channels. 59 59 */ 60 - int midi_mask_transmit; 60 + unsigned short midi_mask_transmit; 61 61 62 62 /** 63 63 Bit mask for input MIDI channels.