]> git.baikalelectronics.ru Git - kernel.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)
commitb42a1e564c47ea2ed1966615e91f033ee2f5706c
tree1f366b123ff5e7472a19538fd044e426f8308134
parent096752ca7d7dead3c92cf9b3b00a5707db894850
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