HID: asus: Add event handler to catch unmapped Asus Vendor UsagePage codes
authorHans de Goede <hdegoede@redhat.com>
Mon, 26 Nov 2018 10:52:16 +0000 (11:52 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 30 Nov 2018 13:29:30 +0000 (14:29 +0100)
commite98e38090f7ef4bf519d2b34e0d5128ed5bf8c79
treebd4fd0c055f711557d340f229c81deac91fe18e5
parente195ca6cb6f21633e56322d5aa11ed59cdb22fb2
HID: asus: Add event handler to catch unmapped Asus Vendor UsagePage codes

Various Asus devices generate HID events using the Asus Vendor specific
UsagePage 0xff31 and hid-asus will map these in its input_mapping for all
devices to which it binds (independent of any quirks).

Add an event callback which check for unmapped (because sofar unknown)
usages within the Asus Vendor UsagePage and log a warning for these.

The purpose of this patch is to help debugging / find such unmapped codes
and add them to the asus_input_mapping() function.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-asus.c