diff options
author | Aseda Aboagye <aaboagye@chromium.org> | 2024-06-04 23:10:47 +0000 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-06-07 11:08:07 +0200 |
commit | 0c7dd00de018ff70b3452c424901816e26366a8a (patch) | |
tree | bf9a0e0936659701c37a2caaeceb127b20705c87 /drivers/hid/hid-input.c | |
parent | 89e1ee118d6f0ee6bd6e80d8fe08839875daa241 (diff) | |
download | linux-0c7dd00de018ff70b3452c424901816e26366a8a.tar.gz linux-0c7dd00de018ff70b3452c424901816e26366a8a.tar.bz2 linux-0c7dd00de018ff70b3452c424901816e26366a8a.zip |
input: Add event code for accessibility key
HUTRR116 added support for a new usage titled "System Accessibility
Binding" which toggles a system-wide bound accessibility UI or command.
This commit simply adds a new event code for the usage.
Signed-off-by: Aseda Aboagye <aaboagye@chromium.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/Zl-e97O9nvudco5z@google.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r-- | drivers/hid/hid-input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index e03d300d2bac..d5a6e89c3086 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -836,6 +836,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel if ((usage->hid & 0xf0) == 0xa0) { /* SystemControl */ switch (usage->hid & 0xf) { case 0x9: map_key_clear(KEY_MICMUTE); break; + case 0xa: map_key_clear(KEY_ACCESSIBILITY); break; default: goto ignore; } break; |