Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1452033

[PATCH v2 2/2] dell-wmi: Add events created by Dell Rugged 2-in-1s

From Mario Limonciello <mario_limonciello@dell.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/2] dell-wmi: Add events created by Dell Rugged 2-in-1s
Date 2016-07-28 20:00 +0200
Message-ID <rZXLc-12G-35@gated-at.bofh.it> (permalink)
References <rZXLc-12G-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/platform/x86/dell-wmi.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 866bf73..28ec17a 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 } },
+
 };
 
 /*
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/2] dell-wmi: Adjust wifi catcher to emit KEY_WLAN Mario Limonciello <mario_limonciello@dell.com> - 2016-07-28 20:00 +0200
  [PATCH v2 2/2] dell-wmi: Add events created by Dell Rugged 2-in-1s Mario Limonciello <mario_limonciello@dell.com> - 2016-07-28 20:00 +0200

csiph-web