Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

macintosh: fix fabrication of caplock key events

If the user has turned on the "restore_caplock_events" parameter, the
code mangles the capslock events correctly, then erroneously ignores
those events. Fix logic to allow correct fallthrough.

Signed-off-by: Andy Wingo <wingo@pobox.com>
Acked-by: Andrew McNabb <amcnabb@mcnabbs.org>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andy Wingo and committed by
Linus Torvalds
9f31c05e 96990a4a

+2 -1
+2 -1
drivers/macintosh/adbhid.c
··· 322 322 input_sync(ahid->input); 323 323 input_report_key(ahid->input, KEY_CAPSLOCK, 0); 324 324 input_sync(ahid->input); 325 + return; 325 326 } 326 - return; 327 + break; 327 328 #ifdef CONFIG_PPC_PMAC 328 329 case ADB_KEY_POWER_OLD: /* Power key on PBook 3400 needs remapping */ 329 330 switch(pmac_call_feature(PMAC_FTR_GET_MB_INFO,