]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Input: rc-keymap - return KEY_RESERVED for unknown mappings
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 29 Jan 2011 07:33:29 +0000 (23:33 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 31 Jan 2011 03:04:11 +0000 (13:04 +1000)
commit54e74b87e2a9941c6fa82189f270b47cceeba714
tree4a41222df8d4f525a9686947d10884642eb95211
parent1ca05b7fc2672ea870bd58f45dc8d36d2b980f94
Input: rc-keymap - return KEY_RESERVED for unknown mappings

Do not respond with -EINVAL to EVIOCGKEYCODE for not-yet-mapped
scancodes, but rather return KEY_RESERVED.

This fixes breakage with Ubuntu's input-kbd utility that stopped
returning full keymaps for remote controls.

Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Mark Lord <kernel@teksavvy.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/rc/rc-main.c