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:
915ac05
)
platform/x86: dell-wmi: Add events created by Dell Rugged 2-in-1s
author
Mario Limonciello
<
[email protected]
>
Thu, 28 Jul 2016 17:53:48 +0000
(12:53 -0500)
committer
Darren Hart
<
[email protected]
>
Tue, 13 Dec 2016 17:29:00 +0000
(09:29 -0800)
The Dell Rugged 7202 has 3 programmable buttons (labeled P1, P2, P3)
and a detachable keyboard/mouse dock.
Signed-off-by: Mario Limonciello <
[email protected]
>
Reviewed-by: Andy Shevchenko <
[email protected]
>
Signed-off-by: Andy Shevchenko <
[email protected]
>
drivers/platform/x86/dell-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/dell-wmi.c
b/drivers/platform/x86/dell-wmi.c
index 46c20ec8aed260970a0d136462d2a502e8b78d64..75e637047d36d781adcb7d7aa0da8d5891e3a0e2 100644
(file)
--- a/
drivers/platform/x86/dell-wmi.c
+++ b/
drivers/platform/x86/dell-wmi.c
@@
-274,6
+274,16
@@
static const struct key_entry dell_wmi_keymap_type_0010[] __initconst = {
/* Stealth mode toggle */
{ KE_IGNORE, 0x155, { KEY_RESERVED } },
+
+ /* Rugged magnetic dock attach/detach events */
+ { KE_IGNORE, 0x156, { KEY_RESERVED } },
+ { KE_IGNORE, 0x157, { KEY_RESERVED } },
+
+ /* Rugged programmable (P1/P2/P3 keys) */
+ { KE_KEY, 0x850, { KEY_PROG1 } },
+ { KE_KEY, 0x851, { KEY_PROG2 } },
+ { KE_KEY, 0x852, { KEY_PROG3 } },
+
};
/*