HID: google: Detect base folded usage instead of hard-coding whiskers
authorNicolas Boichat <drinkcat@chromium.org>
Thu, 3 Oct 2019 03:18:00 +0000 (11:18 +0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 10 Oct 2019 19:11:11 +0000 (21:11 +0200)
commit20c55f250618d4d110b27410a8ffd2c02a0e6911
treef4b165132f806c4f51869fb18d9ad1e718bd236a
parentb543db46b47dc075535a5adf93460b611d669598
HID: google: Detect base folded usage instead of hard-coding whiskers

Some other hammer-like device will emit a similar code, let's look for
the folded event in HID usage table, instead of hard-coding whiskers
in many places.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-google-hammer.c