OSDN Git Service

HID: input: Add support for Programmable Buttons
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 15 Jun 2021 21:41:03 +0000 (23:41 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 24 Jun 2021 13:40:59 +0000 (15:40 +0200)
commitbcfa8d14570d85c998a9b706b074ab151b286edf
tree0622b876792086a75f3c6288a792fafdb15efe57
parentb15b253c908235bb10bdbc36f7e33ab40758215f
HID: input: Add support for Programmable Buttons

Map them to KEY_MACRO# event codes.

These buttons are defined by HID as follows:
"The user defines the function of these buttons to control software applications or GUI objects."

This matches the semantics of the KEY_MACRO# input event codes that Linux supports.

Also add support for HID "Named Array" collections.
Also add hid-debug support for KEY_MACRO#.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-debug.c
drivers/hid/hid-input.c
include/linux/hid.h