]> git.ipfire.org Git - people/ms/linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:09 +0000 (15:14 -0800)
commit82e7d9f7c8d548fc1c9c1fb9849b2bc1878f9063
tree86f69a8fa0727e7d97a6ec050f09182a723a6a85
parentc0b18d3b95a7cd272166e3d1e9981ddd9343de92
Input: rc-keymap - return KEY_RESERVED for unknown mappings

commit 54e74b87e2a9941c6fa82189f270b47cceeba714 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/IR/ir-keytable.c