Commit aaf3a5e7 authored by Michał Kępień's avatar Michał Kępień Committed by Darren Hart

dell-wmi: support Dell Inspiron M5110

Similarly to Dell Vostro V131, Dell Inspiron M5110 also requires an
SMBIOS request to be issued in order for WMI events to be generated and
does not raise an i8042 interrupt when the Dell Instant Launch hotkey is
pressed.  However, the event code for that hotkey on this machine is
0xe029, so add it to the legacy keymap.
Signed-off-by: default avatarMichał Kępień <kernel@kempniu.pl>
Tested-by: default avatarDarek Stojaczyk <darek.stojaczyk@gmail.com>
Reviewed-by: default avatarPali Rohár <pali.rohar@gmail.com>
Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
parent 13f5059a
...@@ -60,6 +60,14 @@ static int __init dmi_matched(const struct dmi_system_id *dmi) ...@@ -60,6 +60,14 @@ static int __init dmi_matched(const struct dmi_system_id *dmi)
} }
static const struct dmi_system_id dell_wmi_smbios_list[] __initconst = { static const struct dmi_system_id dell_wmi_smbios_list[] __initconst = {
{
.callback = dmi_matched,
.ident = "Dell Inspiron M5110",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron M5110"),
},
},
{ {
.callback = dmi_matched, .callback = dmi_matched,
.ident = "Dell Vostro V131", .ident = "Dell Vostro V131",
...@@ -110,8 +118,11 @@ static const struct key_entry dell_wmi_legacy_keymap[] __initconst = { ...@@ -110,8 +118,11 @@ static const struct key_entry dell_wmi_legacy_keymap[] __initconst = {
{ KE_IGNORE, 0xe020, { KEY_MUTE } }, { KE_IGNORE, 0xe020, { KEY_MUTE } },
/* Shortcut and audio panel keys */ /* Dell Instant Launch key */
{ KE_KEY, 0xe025, { KEY_PROG4 } }, { KE_KEY, 0xe025, { KEY_PROG4 } },
{ KE_KEY, 0xe029, { KEY_PROG4 } },
/* Audio panel key */
{ KE_IGNORE, 0xe026, { KEY_RESERVED } }, { KE_IGNORE, 0xe026, { KEY_RESERVED } },
{ KE_IGNORE, 0xe02e, { KEY_VOLUMEDOWN } }, { KE_IGNORE, 0xe02e, { KEY_VOLUMEDOWN } },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment