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)
commitd6f15ed876b83a1a0eba1d0473eef58acc95444a
tree2434fbf98aaab70b7a876af865cb407385e0f0cd
parentdd258c00b96932ce2a81a9bb8bb8e6be997aa2cc
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