Commit 67d6baa4 authored by Ken O'Brien's avatar Ken O'Brien Committed by Greg Kroah-Hartman

Staging: asus_oled: Fixed use of obsolete function.

Removed use of obsolete function "strict_strtoul". Replaced with "kstrtoul"
as suggested by checkpatch.pl
Signed-off-by: default avatarKen O'Brien <kernel@kenobrien.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3b9cd5d1
...@@ -201,7 +201,7 @@ static ssize_t set_enabled(struct device *dev, struct device_attribute *attr, ...@@ -201,7 +201,7 @@ static ssize_t set_enabled(struct device *dev, struct device_attribute *attr,
struct usb_interface *intf = to_usb_interface(dev); struct usb_interface *intf = to_usb_interface(dev);
struct asus_oled_dev *odev = usb_get_intfdata(intf); struct asus_oled_dev *odev = usb_get_intfdata(intf);
unsigned long value; unsigned long value;
if (strict_strtoul(buf, 10, &value)) if (kstrtoul(buf, 10, &value))
return -EINVAL; return -EINVAL;
enable_oled(odev, value); enable_oled(odev, value);
...@@ -217,7 +217,7 @@ static ssize_t class_set_enabled(struct device *device, ...@@ -217,7 +217,7 @@ static ssize_t class_set_enabled(struct device *device,
(struct asus_oled_dev *) dev_get_drvdata(device); (struct asus_oled_dev *) dev_get_drvdata(device);
unsigned long value; unsigned long value;
if (strict_strtoul(buf, 10, &value)) if (kstrtoul(buf, 10, &value))
return -EINVAL; return -EINVAL;
enable_oled(odev, value); enable_oled(odev, value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment