From: Bernhard Rosenkraenzer <bero@arklinux.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Make wistron-btns recognize special keys on Medion WIM2160 notebooks
Date: Fri, 14 Sep 2007 13:37:36 +0200 [thread overview]
Message-ID: <200709141337.36398.bero@arklinux.org> (raw)
The patch below adds support for Medion WIM2160 notebooks to the wistron-btns
driver.
Signed-off-by: Bernhard Rosenkraenzer <bero@arklinux.org>
--- linux-2.6.22/drivers/input/misc/wistron_btns.c.ark 2007-09-07
22:47:49.000000000 +0000
+++ linux-2.6.22/drivers/input/misc/wistron_btns.c 2007-09-07
22:54:19.000000000 +0000
@@ -536,6 +536,13 @@
{ 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} },
@@ -917,6 +924,15 @@
},
.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, }
};
next reply other threads:[~2007-09-14 11:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-14 11:37 Bernhard Rosenkraenzer [this message]
2007-09-14 11:56 ` [PATCH] Make wistron-btns recognize special keys on Medion WIM2160 notebooks Carlos Corbacho
2007-09-19 23:02 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200709141337.36398.bero@arklinux.org \
--to=bero@arklinux.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox