]> git.baikalelectronics.ru Git - kernel.git/commit
hp-wmi: update to match current rfkill semantics
authorMatthew Garrett <mjg59@srcf.ucam.org>
Tue, 2 Sep 2008 21:36:00 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Sep 2008 02:21:39 +0000 (19:21 -0700)
commitdca738e68db7d82f970fef66c632a7ba0d384ffc
tree1cae4e5cd4f426eee34944afb4c8925cec51074b
parent414b751b480d83ee221f3f7f2530b2ad9fc31f9f
hp-wmi: update to match current rfkill semantics

hp-wmi currently changes the RFKill state by altering the struct members
rather than using the dedicated interface, meaning that update events
won't be pushed to userspace.  This patch fixes that, along with fixing
the declared type of the WWAN kill switch.  It also ensures that rfkill
interfaces are only registered for hardware that exists.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ivo van Doorn <ivdoorn@gmail.com>
Cc: Dave Young <hidave.darkstar@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/hp-wmi.c