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
-  Lines: 9
-  Date:
Mon Aug 10 11:02:24 1998
-  Orig file: 
v2.1.115/linux/include/asm-m68k/keyboard.h
-  Orig date: 
Mon Feb 23 18:12:11 1998
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