]> git.baikalelectronics.ru Git - kernel.git/commit
fujitsu-laptop: Use RFKILL support bitmask from firmware
authorTony Vroon <tony@linx.net>
Mon, 2 Feb 2009 11:11:10 +0000 (11:11 +0000)
committerLen Brown <len.brown@intel.com>
Sun, 22 Feb 2009 02:59:55 +0000 (21:59 -0500)
commit121246e21867e1d12a2f68187ee64c11316cfb6b
tree45c1e916e5dccd8f0583f6f836483e6c9811840a
parent0567017e9df68c0ee257b385b6bcf15eef24a7e8
fujitsu-laptop: Use RFKILL support bitmask from firmware

Up until now, we polled the rfkill status for every incoming FUJ02E3 ACPI event.
It turns out that the firmware has a bitmask which indicates what rfkill-related
state it can report.
The rfkill_supported bitmask is now used to avoid polling for rfkill at all in
the notification handler if there is no support. Also, it is used in the platform
device callbacks. As before we register all callbacks and report "unknown" if the
firmware does not give us status updates for that particular bit.

This was fed through checkpatch.pl and tested on the S6420, S7020 and P8010
platforms.

Signed-off-by: Tony Vroon <tony@linx.net>
Tested-by: Stephen Gildea <stepheng+linux@gildea.com>
Acked-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/fujitsu-laptop.c