summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMario Limonciello <mario_limonciello@dell.com>2016-07-28 12:53:48 -0500
committerDarren Hart <dvhart@linux.intel.com>2016-12-13 09:29:00 -0800
commit5dc444b804eae57abaf6f05663d9cb9f030bb9d2 (patch)
tree6aa88b3cdd2d0a06bf0b5e1bed105d64c9ac31ec /drivers/platform
parent915ac0574c85e4202a4ede961d9e1230b1cca06f (diff)
downloadlinux-5dc444b804eae57abaf6f05663d9cb9f030bb9d2.tar.gz
linux-5dc444b804eae57abaf6f05663d9cb9f030bb9d2.tar.bz2
linux-5dc444b804eae57abaf6f05663d9cb9f030bb9d2.zip
platform/x86: dell-wmi: Add events created by Dell Rugged 2-in-1s
The Dell Rugged 7202 has 3 programmable buttons (labeled P1, P2, P3) and a detachable keyboard/mouse dock. Signed-off-by: Mario Limonciello <mario_limonciello@dell.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/dell-wmi.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 46c20ec8aed2..75e637047d36 100644
--- 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 } },
+
};
/*