linux-kernel-test/drivers/platform/x86
Krzysztof Kosiński 07de5bdb7b tc1100-wmi: Fix state reporting
The tc1100-wmi driver should print the current states of wireless LAN and
jogdial brightness control when "cat /sys/devices/platform/tc1100-wmi/wireless"
and "cat /sys/devices/platform/tc1100-wmi/jogdial" are executed, respectively.
What actually happens is that both of those commands print 0 regardless of the
hardware state. The cause is that wmi_query_block returns an ACPI_TYPE_INTEGER
rather than ACPI_TYPE_BUFFER as the driver assumes. Additionally, the driver
intends to return a jogdial state that is inverted with respect to the commands
required to set it (e.g. it intends to return 1 after the jogdial file was
written with 0).

This patch fixes both of those issues - the commands to query the
state now work, and should return the same state that was written.

http://bugzilla.kernel.org/show_bug.cgi?id=12286

Signed-off-by: Krzysztof Kosiński <tweenk.pl@gmail.com>
Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-04-03 12:03:27 -04:00
..
acer-wmi.c acer-wmi: double free in acer_rfkill_exit() 2009-03-16 00:37:33 -04:00
asus_acpi.c asus_acpi: Add R1F support 2009-01-20 14:34:30 -05:00
asus-laptop.c asus-laptop: restore acpi_generate_proc_event() 2009-03-16 00:37:31 -04:00
compal-laptop.c
dell-laptop.c dell-laptop: move to drivers/platform/x86/ from drivers/misc/ 2009-01-16 14:32:18 -05:00
eeepc-laptop.c eeepc-laptop: restore acpi_generate_proc_event() 2009-03-16 00:37:31 -04:00
fujitsu-laptop.c fujitsu-laptop: Use RFKILL support bitmask from firmware 2009-02-21 21:59:55 -05:00
hp-wmi.c hp-wmi: fix error path in hp_wmi_bios_setup() 2009-02-05 12:56:47 -08:00
intel_menlow.c
Kconfig acer-wmi: Unmark as 'experimental' 2009-03-16 00:38:23 -04:00
Makefile dell-laptop: move to drivers/platform/x86/ from drivers/misc/ 2009-01-16 14:32:18 -05:00
msi-laptop.c
panasonic-laptop.c panasonic-laptop: fix X[ ARRAY_SIZE(X) ] 2009-01-17 20:20:13 -05:00
sony-laptop.c
tc1100-wmi.c tc1100-wmi: Fix state reporting 2009-04-03 12:03:27 -04:00
thinkpad_acpi.c thinkpad-acpi: fix module autoloading for older models 2009-03-16 00:38:24 -04:00
toshiba_acpi.c
wmi.c acpi-wmi: unsigned cannot be less than 0 2009-03-16 00:38:24 -04:00