The function strict_strtoul is obsolete and should be replaced by the
new kstrto* functions.
As the variable midi_mask_transmit is of type int a conversion to
unsigned long is not needed and unsigned int should be sufficient.

Signed-off-by: Andor Daam <[email protected]>
---
 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 e554a2d..fb87829 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 int value;
        int ret;
 
-       ret = strict_strtoul(buf, 10, &value);
+       ret = kstrtouint(buf, 10, &value);
        if (ret)
                return ret;
 
-- 
1.7.5.4

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to