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 obsolete function strict_strtoul should be replaced by the kstrto*
functions.

In this context kstrtou16 should be use, as midi_mask_receive is only
used as unsigned short. All corresponding datatypes were adapted
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
251c3948 4d85fae0

+3 -3
+2 -2
drivers/staging/line6/midi.c
··· 339 339 { 340 340 struct usb_interface *interface = to_usb_interface(dev); 341 341 struct usb_line6 *line6 = usb_get_intfdata(interface); 342 - unsigned long value; 342 + unsigned short value; 343 343 int ret; 344 344 345 - ret = strict_strtoul(buf, 10, &value); 345 + ret = kstrtou16(buf, 10, &value); 346 346 if (ret) 347 347 return ret; 348 348
+1 -1
drivers/staging/line6/midi.h
··· 62 62 /** 63 63 Bit mask for input MIDI channels. 64 64 */ 65 - int midi_mask_receive; 65 + unsigned short midi_mask_receive; 66 66 67 67 /** 68 68 Buffer for incoming MIDI stream.