To: linux-m68k@lists.linux-m68k.org
Subject: L68K: KDGETKEYCODE
X-Yow: WHOA!!  I'm having a RELIGIOUS EXPERIENCE right NOW!!
From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Date: 03 Aug 1998 11:10:12 +0200
Sender: owner-linux-m68k@phil.uni-sb.de

Although we don't support KDSETKEYCODE we can still support KDGETKEYCODE,
it's a trival mapping anyway.

Andreas.

----------------------------------------------------------------------
--- linux-2.1/include/asm-m68k/keyboard.h.~1~	Mon Mar 23 18:28:59 1998
+++ linux-2.1/include/asm-m68k/keyboard.h	Sun Aug  2 23:30:04 1998
@@ -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)
