]> 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)
commita33c5d0269df1430ee1861e9fea1ecdec90ceab0
treeef2079551b0eab0c3657c80f7405d2f0f0dc38d6
parenta181a423263f9d5f81711481fc80b56ff8cf7bb5
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