diff options
author | Andor Daam | 2011-12-05 10:09:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-12-08 21:32:54 +0100 |
commit | 4d85fae04f23ebbdbbb11061b8eec48082ecdc43 (patch) | |
tree | 75de5d1cfd207b63ce4329b68e9a783ddd0f2326 /drivers/staging/line6/midi.c | |
parent | Staging: comedi: unlock on error in usbduxsigma_attach() (diff) | |
download | kernel-qcow2-linux-4d85fae04f23ebbdbbb11061b8eec48082ecdc43.tar.gz kernel-qcow2-linux-4d85fae04f23ebbdbbb11061b8eec48082ecdc43.tar.xz kernel-qcow2-linux-4d85fae04f23ebbdbbb11061b8eec48082ecdc43.zip |
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>
Diffstat (limited to 'drivers/staging/line6/midi.c')
-rw-r--r-- | drivers/staging/line6/midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c index 7f1e90e14411..3d1ada68c29d 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; |