The LED value is an int, so replace strict_strtol() with kstrtoint().
It's safe to pass in the actual variable instead of a local temporary
because strto*() doesn't write to the result unless the function returns
success.
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                                    const char *buf, size_t count)
 {
        int retval;
-       long value;
 
-       retval = strict_strtol(buf, 10, &value);
+       retval = kstrtoint(buf, 10, &led_red);
        if (retval)
                return retval;
 
-       led_red = value;
        toneport_update_led(dev);
        return count;
 }
                                      const char *buf, size_t count)
 {
        int retval;
-       long value;
 
-       retval = strict_strtol(buf, 10, &value);
+       retval = kstrtoint(buf, 10, &led_green);
        if (retval)
                return retval;
 
-       led_green = value;
        toneport_update_led(dev);
        return count;
 }