sony-laptop: use kstrtoul to parse sysfs values
authorMattia Dongili <malattia@linux.it>
Sat, 19 May 2012 13:35:47 +0000 (22:35 +0900)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:29:34 +0000 (14:29 -0400)
commit9e1233792933bc9b64133c3b00f2f4ef8b02d1a2
treeef2079551b0eab0c3657c80f7405d2f0f0dc38d6
parentebcef1b0e41f2ff972e5c5487a30e8f4ee2b6f13
sony-laptop: use kstrtoul to parse sysfs values

This avoids surprises like echoing "enable" into a sysfs file and
finding that the feature was actually disabled.

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c