diff mbox series

[5/7] HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys

Message ID 20190118233037.87318-5-dmitry.torokhov@gmail.com (mailing list archive)
State Mainlined
Commit 7975a1d6a7afeb3eb61c971a153d24dd8fa032f3
Delegated to: Jiri Kosina
Headers show
Series [1/7] Input: document meanings of KEY_SCREEN and KEY_ZOOM | expand

Commit Message

Dmitry Torokhov Jan. 18, 2019, 11:30 p.m. UTC
According to HUTRR73 usages 0x79, 0x7a and 0x7c from the consumer page
correspond to Brightness Up/Down/Toggle keys, so let's add the mappings.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---

This can be applied independently.

 drivers/hid/hid-input.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 5f800e7b04f2..cebe8a8cce2e 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -900,6 +900,10 @@  static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
 		case 0x074: map_key_clear(KEY_BRIGHTNESS_MAX);		break;
 		case 0x075: map_key_clear(KEY_BRIGHTNESS_AUTO);		break;
 
+		case 0x079: map_key_clear(KEY_KBDILLUMUP);	break;
+		case 0x07a: map_key_clear(KEY_KBDILLUMDOWN);	break;
+		case 0x07c: map_key_clear(KEY_KBDILLUMTOGGLE);	break;
+
 		case 0x082: map_key_clear(KEY_VIDEO_NEXT);	break;
 		case 0x083: map_key_clear(KEY_LAST);		break;
 		case 0x084: map_key_clear(KEY_ENTER);		break;