hp-wmi: add proper hotkey support
authorMatthew Garrett <mjg59@srcf.ucam.org>
Tue, 2 Sep 2008 21:36:03 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Sep 2008 02:21:39 +0000 (19:21 -0700)
commita8823aefd142d2a9c4b3661bf8712ccd2da1b220
treec888ff1968986a29a0d126c22f0329d777e1bda6
parent3f6e2f137c5b83c3c2d48fae971e845c3450cc7c
hp-wmi: add proper hotkey support

It turns out that event 0x4 merely indcates that a hotkey has been
pressed, not which one.  A further query is required in order to determine
the actual keypress.  The following patch adds support for that along with
the known keycodes.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/hp-wmi.c