projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6b88f6
)
asus-wmi: Add ambient light sensor toggle key
author
Nick Leiten
<
[email protected]
>
Sun, 19 Jun 2016 11:59:26 +0000
(14:59 +0300)
committer
Darren Hart
<
[email protected]
>
Wed, 29 Jun 2016 05:18:35 +0000
(22:18 -0700)
Ausu laptops issue key 0x7A when the toggle ALS key is pressed (Fn+A on
Asus U38N). Update the key_entry so userspace can handle the event.
Tested on Asus U38N.
Signed-off-by: Nick Leiten <
[email protected]
>
Reviewed-By: Corentin Chary <
[email protected]
>
[dvhart: cleaned up commit message and comment line length]
Signed-off-by: Darren Hart <
[email protected]
>
drivers/platform/x86/asus-nb-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/asus-nb-wmi.c
b/drivers/platform/x86/asus-nb-wmi.c
index 091ca7ada8fc48efe25cdd445e8728d1833398b0..096ceba011a01f1185f4bc6143c84769eba9dee9 100644
(file)
--- a/
drivers/platform/x86/asus-nb-wmi.c
+++ b/
drivers/platform/x86/asus-nb-wmi.c
@@
-356,6
+356,7
@@
static const struct key_entry asus_nb_wmi_keymap[] = {
{ KE_KEY, 0x67, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV */
{ KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } },
{ KE_IGNORE, 0x6E, }, /* Low Battery notification */
+ { KE_KEY, 0x7a, { KEY_ALS_TOGGLE } }, /* Ambient Light Sensor Toggle */
{ KE_KEY, 0x7D, { KEY_BLUETOOTH } }, /* Bluetooth Enable */
{ KE_KEY, 0x7E, { KEY_BLUETOOTH } }, /* Bluetooth Disable */
{ KE_KEY, 0x82, { KEY_CAMERA } },