]> 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)
commit40ec383076cf230d0229a7b2d2867f50749ba14d
tree2434fbf98aaab70b7a876af865cb407385e0f0cd
parentafe18cab18285a0a45fc095a38f7ec8578f15ad1
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