]> err.no Git - linux-2.6/commit
Input: adbhid - capslock and power button fix
authorRodney Lorrimar <rodney@rodney.id.au>
Mon, 5 May 2008 15:59:24 +0000 (11:59 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 16 May 2008 18:50:10 +0000 (14:50 -0400)
commit5b7c407baa9501e49ebd3b6eac30cd4bcb60ca9d
tree4aa4bb8ff87d1a01058a8c9061ecf09b15f8c930
parent2e75f044c717b85f65d74c8c90624428ba31078c
Input: adbhid - capslock and power button fix

If the adbhid module parameter restore_capslock_events is used,
pressing the power button may confuse the capslock state. This is
because the power button release scancode (0xff) is sometimes the same
as the capslock press/release scancode.

This fix adds yet another flag to track the state of the power button
so that it works independently of capslock.

Signed-off-by: Rodney Lorrimar <rodney@rodney.id.au>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/macintosh/adbhid.c