projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b9cd5d
)
Staging: asus_oled: Fixed use of obsolete function.
author
Ken O'Brien
<kernel@kenobrien.org>
Sat, 19 Nov 2011 01:18:12 +0000
(
01:18
+0000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sun, 27 Nov 2011 02:13:54 +0000
(18:13 -0800)
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>
drivers/staging/asus_oled/asus_oled.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/asus_oled/asus_oled.c
b/drivers/staging/asus_oled/asus_oled.c
index 7bb7da7959a29e1a40692190ea918f84c74f17eb..e77e4e0396cf9f4debc146e7a4816e01c4928271 100644
(file)
--- 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 (
k
strtoul(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 (
k
strtoul(buf, 10, &value))
return -EINVAL;
enable_oled(odev, value);