Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ken O'Brien and committed by
Greg Kroah-Hartman
67d6baa4 3b9cd5d1

+2 -2
+2 -2
drivers/staging/asus_oled/asus_oled.c
··· 201 201 struct usb_interface *intf = to_usb_interface(dev); 202 202 struct asus_oled_dev *odev = usb_get_intfdata(intf); 203 203 unsigned long value; 204 - if (strict_strtoul(buf, 10, &value)) 204 + if (kstrtoul(buf, 10, &value)) 205 205 return -EINVAL; 206 206 207 207 enable_oled(odev, value); ··· 217 217 (struct asus_oled_dev *) dev_get_drvdata(device); 218 218 unsigned long value; 219 219 220 - if (strict_strtoul(buf, 10, &value)) 220 + if (kstrtoul(buf, 10, &value)) 221 221 return -EINVAL; 222 222 223 223 enable_oled(odev, value);