diff options
Diffstat (limited to 'include/asm-m68k/keyboard.h')
-rw-r--r-- | include/asm-m68k/keyboard.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-m68k/keyboard.h b/include/asm-m68k/keyboard.h index cb013200b..c30c8dc04 100644 --- a/include/asm-m68k/keyboard.h +++ b/include/asm-m68k/keyboard.h @@ -24,7 +24,7 @@ static __inline__ int kbd_setkeycode(unsigned int scancode, 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) |