Skip to content

Commit

Permalink
platform/x86: dell-wmi: Add events created by Dell Rugged 2-in-1s
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Mario Limonciello authored and dvhart committed Dec 13, 2016
1 parent 915ac05 commit 5dc444b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/platform/x86/dell-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },

};

/*
Expand Down

0 comments on commit 5dc444b

Please sign in to comment.