+ make-wistron-btns-recognize-special-keys-on-medion-wim2160-notebooks.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Make wistron-btns recognize special keys on Medion WIM2160 notebooks
has been added to the -mm tree.  Its filename is
     make-wistron-btns-recognize-special-keys-on-medion-wim2160-notebooks.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Make wistron-btns recognize special keys on Medion WIM2160 notebooks
From: Bernhard Rosenkraenzer <bero@xxxxxxxxxxxx>

Add support for Medion WIM2160 notebooks to the wistron-btns driver.

Signed-off-by: Bernhard Rosenkraenzer <bero@xxxxxxxxxxxx>
Cc: Jiri Kosina <jkosina@xxxxxxx>
Cc: Dmitry Torokhov <dtor@xxxxxxx>
Cc: Carlos Corbacho <cathectic@xxxxxxxxx>
Cc: Miloslav Trmac <mitr@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/input/misc/wistron_btns.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+)

diff -puN drivers/input/misc/wistron_btns.c~make-wistron-btns-recognize-special-keys-on-medion-wim2160-notebooks drivers/input/misc/wistron_btns.c
--- a/drivers/input/misc/wistron_btns.c~make-wistron-btns-recognize-special-keys-on-medion-wim2160-notebooks
+++ a/drivers/input/misc/wistron_btns.c
@@ -533,6 +533,13 @@ static struct key_entry keymap_fs_amilo_
 	{ KE_END, FE_MAIL_LED | FE_WIFI_LED | FE_UNTESTED }
 };
 
+static struct key_entry keymap_medion_wim2160[] __initdata = {
+	{ KE_WIFI, 0x30 },
+	{ KE_KEY, 0x11, {KEY_PROG1} },
+	{ KE_KEY, 0x12, {KEY_PROG2} },
+	{ KE_END, 0 }
+};
+
 static struct key_entry keymap_wistron_md2900[] __initdata = {
 	{ KE_KEY, 0x01, {KEY_HELP} },
 	{ KE_KEY, 0x02, {KEY_CONFIG} },
@@ -914,6 +921,15 @@ static struct dmi_system_id dmi_ids[] __
 		},
 		.driver_data = keymap_fs_amilo_d88x0
 	},
+	{
+		.callback = dmi_matched,
+		.ident = "Medion WIM2160",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "MEDION"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "WIM2160"),
+		},
+		.driver_data = keymap_medion_wim2160
+	},
 	{ NULL, }
 };
 
_

Patches currently in -mm which might be from bero@xxxxxxxxxxxx are

make-wistron-btns-recognize-special-keys-on-medion-wim2160-notebooks.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux