]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1cdc213bc79dc7d3a579a57fe71a7e950e467fc2
treeef2079551b0eab0c3657c80f7405d2f0f0dc38d6
parent20071267173118f392aa3b292a33780e5fdbb64c
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