]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sony-laptop: support automatic resume on lid open
authorMarco Chiappero <marco@absence.it>
Sat, 19 May 2012 13:35:54 +0000 (22:35 +0900)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:33:35 +0000 (14:33 -0400)
commit54535d083f0ae6ee51a43a7a3e17e3ca89774937
tree7b6e9feafe72be44d821d49a62ff083ca59f94e9
parentbab7084c745bf4d75b760728387f375fd34dc683
sony-laptop: support automatic resume on lid open

A few models offer the chance to set whether to resume from S3 and/or S4
when opening the lid.

[malattia@linux.it: create three sysfs files for S3/4/5 rather than
using a single one accepting a bitmask. Support S5 since the DSDT
exports it. Use a struct to hold all the related values, caching of the
current status value rather than re-reading all the time in the sysfs
show function.]

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