patch-2.1.116 linux/include/asm-m68k/keyboard.h

Next file: linux/include/asm-m68k/machw.h
Previous file: linux/include/asm-m68k/bootinfo.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.115/linux/include/asm-m68k/keyboard.h linux/include/asm-m68k/keyboard.h
@@ -24,7 +24,7 @@
 
 static __inline__ int kbd_getkeycode(unsigned int scancode)
 {
-    return -EOPNOTSUPP;
+    return scancode > 127 ? -EINVAL : scancode;
 }
 
 static __inline__ int kbd_pretranslate(unsigned char scancode, char raw_mode)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov