Skip to contentSkip to conversation

Staging: asus_oled: Fixed use of obsolete function.

PATCH New Ken O'Brien 1 participant 1 message Nov 19, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: asus_oled: Fixed use of obsolete function.

Removed use of obsolete function "strict_strtoul". Replaced with "kstrtoul" as suggested by checkpatch.pl

---
 drivers/staging/asus_oled/asus_oled.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/asus_oled/asus_oled.c +2 -2
index 7bb7da7..e77e4e0 100644
@@ -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 asus_oled_dev *odev = usb_get_intfdata(intf);
 	unsigned long value;
-	if (strict_strtoul(buf, 10, &value))
+	if (kstrtoul(buf, 10, &value))
 		return -EINVAL;
 
 	enable_oled(odev, value);
@@ -217,7 +217,7 @@ static ssize_t class_set_enabled(struct device *device,
 		(struct asus_oled_dev *) dev_get_drvdata(device);
 	unsigned long value;
 
-	if (strict_strtoul(buf, 10, &value))
+	if (kstrtoul(buf, 10, &value))
 		return -EINVAL;
 
 	enable_oled(odev, value);
Signature · 1 line
1.7.5.4