Input: scancode in get/set_keycodes should be unsigned
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Mar 2010 06:37:10 +0000 (22:37 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Mar 2010 07:19:15 +0000 (23:19 -0800)
commit58b939959d228681208ba997595411fddc860849
tree3bfa2df2c811e14698e066f093a6dd7d75f45672
parentec62e1c8dd2f9b2a833b48d4a2f58f0c5e07384c
Input: scancode in get/set_keycodes should be unsigned

The HID layer has some scan codes of the form 0xffbc0000 for logitech
devices which do not work if scancode is typed as signed int, so we need
to switch to unsigned it instead. While at it keycode being signed does
not make much sense either.

Acked-by: Márton Németh <nm127@freemail.hu>
Acked-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
14 files changed:
drivers/hid/hid-input.c
drivers/input/evdev.c
drivers/input/input.c
drivers/input/misc/ati_remote2.c
drivers/input/misc/winbond-cir.c
drivers/input/sparse-keymap.c
drivers/media/IR/ir-keytable.c
drivers/media/dvb/dvb-usb/dvb-usb-remote.c
drivers/platform/x86/dell-wmi.c
drivers/platform/x86/hp-wmi.c
drivers/platform/x86/panasonic-laptop.c
drivers/platform/x86/topstar-laptop.c
drivers/platform/x86/toshiba_acpi.c
include/linux/input.h