summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2003-01-15 16:10:30 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-01-15 16:10:30 -0800
commitdfca615d520b98cf60be16d7f2daa6ad1e532bef (patch)
treeefedf9b4dba2ccc5304f99400b1ac0a4113ae632 /drivers/input
parent41e69380f92241abb335f5ddd79f136b010750bb (diff)
[PATCH] Amiga keyboard fix
Amiga keyboard: the release bit indicates a key release, not a key press.
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/amikbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/amikbd.c b/drivers/input/keyboard/amikbd.c
index 5e1cea29ffb2..14d8d59cf7fc 100644
--- a/drivers/input/keyboard/amikbd.c
+++ b/drivers/input/keyboard/amikbd.c
@@ -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 */