]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Input: adbhid - fix capslock key state after suspend
authorRodney Lorrimar <rodney@rodney.id.au>
Mon, 5 May 2008 15:59:00 +0000 (11:59 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 16 May 2008 18:50:04 +0000 (14:50 -0400)
commit2e75f044c717b85f65d74c8c90624428ba31078c
tree1f366b123ff5e7472a19538fd044e426f8308134
parentd2fc60d6925574eeeadd037aa0f1378e07189a1a
Input: adbhid - fix capslock key state after suspend

If the adbhid module parameter restore_capslock_events is used,
sometimes capslock will get stuck down after resuming.

My fix is to remember the capslock state before suspend and then
ignore the first 'caps lock key down' message after resume if the
capslock LED was on before suspending.

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