patch-2.2.7 linux/arch/m68k/hp300/hil.c

Next file: linux/arch/m68k/mac/mackeyb.c
Previous file: linux/arch/m68k/atari/atakeyb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/arch/m68k/hp300/hil.c linux/arch/m68k/hp300/hil.c
@@ -223,12 +223,13 @@
   {
   case 0x40:
     {
-      unsigned char scode = (poll.data[1] >> 1) | ((poll.data[1] & 1)?0x80:0);
+      int down = (poll.data[1] & 1) == 0;
+      unsigned char scode = poll.data[1] >> 1;
 #if 0
-      if (scode & 0x80)
-	printk("[%02x]", scode & 0x7f);
+      if (down)
+	printk("[%02x]", scode);
 #endif
-      handle_scancode(scode);
+      handle_scancode(scode, down);
     }
     break;
   }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)