hp-wmi: improve rfkill support
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Tue, 21 Jul 2009 11:14:01 +0000 (12:14 +0100)
committerLen Brown <len.brown@intel.com>
Thu, 10 Dec 2009 04:52:54 +0000 (23:52 -0500)
commite5fbba85a7acc2626d4fe14501816811d702f3e9
treeffc1fe9cb89268cd963f52f3552132aad8df7f79
parent22763c5cf3690a681551162c15d34d935308c8d7
hp-wmi: improve rfkill support

1) Add support for reading the hardware blocked state.  Previously
   we read a combination of the hardware and software blocked states,
   reporting it as the software blocked state.  This caused some
   confusing behaviour.

2) The software state is persistent, mark it as such.

3) Check rfkill in the resume handler.  Both the hard and soft
   blocked states may change over hibernation.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Acked-by: Matthew Garrett <mjg@redhat.com>
Tested-by: Maciej Rutecki <maciej.rutecki@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/hp-wmi.c