HID: hid-input quirk for BTC 8193
authorJiri Kosina <jkosina@suse.cz>
Mon, 26 Nov 2007 12:18:00 +0000 (13:18 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 28 Jan 2008 13:51:21 +0000 (14:51 +0100)
commit36ccaad640737899b069a9a93a82765f0e675a20
treef827fe9e5d59bcb2bdcba542070c8d9a790b0ce1
parent87bc2aa9933afc032a93490e1642918121e7470b
HID: hid-input quirk for BTC 8193

BTC 8193 keyboard handles its scrollwheel in very non-standard way.
It produces two non-standard usages for scrolling up and down, in
both cases with postive value equaling to 1. We handle this by temporary
mapping, which we then catch in quirk event handler, and remap to
negative HWHEEL even in order to introduce correct behavior.

Also the button requires special mapping, as it triggers standard-violating
usage code.

Reported in kernel.org bugzilla #9385

Reported-by: Kir Kolyshkin <kir@sacred.ru>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input-quirks.c
drivers/hid/usbhid/hid-quirks.c
include/linux/hid.h