]> git.baikalelectronics.ru Git - kernel.git/commit
sony-laptop: use soft rfkill status stored in hw
authorMarco Chiappero <marco@absence.it>
Sat, 19 May 2012 13:35:44 +0000 (22:35 +0900)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:29:33 +0000 (14:29 -0400)
commit37886cfa0f90aecb5e9156a393300e0026af8f7a
tree2434fbf98aaab70b7a876af865cb407385e0f0cd
parent9b85ea22cdd98394f04fe55d48c4f47658ba60d0
sony-laptop: use soft rfkill status stored in hw

The SNC device on recent Vaio laptops also stores the soft status and
leaves it available after reboot. Use it and always set the last soft
and hard status on module load.

[malattia@linux.it: patch taken from a largely modified sony-laptop.c,
smaller modifications to the original code to simplify it]

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