HID: Add quirk driver for NTI USB-SUN adapter
authorJonathan Tomer <jktomer@google.com>
Wed, 1 Feb 2017 19:54:57 +0000 (11:54 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 6 Mar 2017 12:16:33 +0000 (13:16 +0100)
commit07e88a35dcea7d606caae797dff6e82c642d3f68
tree6e3216d2e2f7655e59499fb0ac4ae70da3d36520
parent81bbef23db51c0b450d90607fbbc2ad80ee0d43f
HID: Add quirk driver for NTI USB-SUN adapter

These adapters allow pre-USB Sun keyboards to be connected to USB-only
machines, but include the wrong maximum keycode in their report descriptor,
making most of the keys present on Sun keyboards but not 101-key PC
keyboards nonfunctional.

This patch implements a quirk that overrides the maximum keycode in the
report descriptor.

Signed-off-by: Jonathan Tomer <jktomer@google.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-core.c
drivers/hid/hid-ids.h
drivers/hid/hid-nti.c [new file with mode: 0644]