sony-laptop: support battery care functions
authorMarco Chiappero <marco@absence.it>
Sat, 19 May 2012 13:35:50 +0000 (22:35 +0900)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:29:35 +0000 (14:29 -0400)
commit967145a030a86cba29fe090acd2b55b56568359e
tree953d210a7f7db723268b2b0afaf6131d5d43aea2
parentae188715ac3215f33ea6a8b829529225bf67deaa
sony-laptop: support battery care functions

Allows limiting the maximum battery charge level to a selectable value
(100%, 80% and 50%).

[malattia@linux.it: group function specific variables in a struct, use
kstrtoul. Allow 0 to 100 values into sysfs files rounding to the actual
limit.]

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