]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Amiga keyboard fix
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 16 Jan 2003 00:10:30 +0000 (16:10 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 16 Jan 2003 00:10:30 +0000 (16:10 -0800)
Amiga keyboard: the release bit indicates a key release, not a key press.

drivers/input/keyboard/amikbd.c

index 5e1cea29ffb288c9e11fcd52a39bd5b4c22fe30b..14d8d59cf7fc92cf02aac1c10ad2522cd13c1647 100644 (file)
@@ -80,7 +80,7 @@ static void amikbd_interrupt(int irq, void *dummy, struct pt_regs *fp)
        udelay(85);                     /* wait until 85 us have expired */
        ciaa.cra &= ~0x40;              /* switch CIA serial port to input mode */
 
-       down = scancode & 1;            /* lowest bit is release bit */
+       down = !(scancode & 1);         /* lowest bit is release bit */
        scancode >>= 1;
 
        if (scancode < 0x78) {          /* scancodes < 0x78 are keys */