HID: input: add mapping for KEY_KBD_LAYOUT_NEXT
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 Apr 2019 16:21:13 +0000 (09:21 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 26 Apr 2019 23:34:41 +0000 (16:34 -0700)
HUTRR56 defined a new usage code on consumer page to cycle through
set of keyboard layouts, let's add this mapping.

Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/hid/hid-input.c

index d6fab579848743555c53534ad933419ad69318a9..757fb1bf4cfd6a7595dc685a2d5dc07243b8edda 100644 (file)
@@ -1023,6 +1023,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
                case 0x28b: map_key_clear(KEY_FORWARDMAIL);     break;
                case 0x28c: map_key_clear(KEY_SEND);            break;
 
+               case 0x29d: map_key_clear(KEY_KBD_LAYOUT_NEXT); break;
+
                case 0x2c7: map_key_clear(KEY_KBDINPUTASSIST_PREV);             break;
                case 0x2c8: map_key_clear(KEY_KBDINPUTASSIST_NEXT);             break;
                case 0x2c9: map_key_clear(KEY_KBDINPUTASSIST_PREVGROUP);                break;