patch-2.2.7 linux/drivers/acorn/char/keyb_ps2.c

Next file: linux/drivers/block/ide-cd.h
Previous file: linux/drivers/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/drivers/acorn/char/keyb_ps2.c linux/drivers/acorn/char/keyb_ps2.c
@@ -221,11 +221,6 @@
 };
 #endif
 
-int ps2kbd_pretranslate(unsigned char scancode)
-{
-	return 1;
-}
-
 int ps2kbd_translate(unsigned char scancode, unsigned char *keycode_p, char *uf_p)
 {
 	*uf_p = scancode & 0200;
@@ -235,7 +230,7 @@
 
 static void ps2kbd_key(unsigned int keycode, unsigned int up_flag)
 {
-	handle_scancode(keycode + (up_flag ? 0x80 : 0));
+	handle_scancode(keycode, !up_flag);
 }
 
 static inline void ps2kbd_sendbyte(unsigned char val)

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