diff options
author | Ken O'Brien <kernel@kenobrien.org> | 2011-11-19 01:18:12 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-26 18:13:54 -0800 |
commit | 67d6baa401e2485f6d12658b836befe1df247a04 (patch) | |
tree | c5507d52381b1fc3c22fa051f4fcdfc6bd14a8ae /drivers/staging/asus_oled | |
parent | 3b9cd5d114f40852ddc2dec0e167034aafe3e115 (diff) | |
download | linux-67d6baa401e2485f6d12658b836befe1df247a04.tar.gz linux-67d6baa401e2485f6d12658b836befe1df247a04.tar.bz2 linux-67d6baa401e2485f6d12658b836befe1df247a04.zip |
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: Ken O'Brien <kernel@kenobrien.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/asus_oled')
-rw-r--r-- | drivers/staging/asus_oled/asus_oled.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/asus_oled/asus_oled.c b/drivers/staging/asus_oled/asus_oled.c index 7bb7da7959a2..e77e4e0396cf 100644 --- a/drivers/staging/asus_oled/asus_oled.c +++ b/drivers/staging/asus_oled/asus_oled.c @@ -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); |