From: Chao Xie <chao.xie@marvell.com>
To: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
dmitry.torokhov@gmail.com, haojian.zhuang@gmail.com,
xiechao.mail@gmail.com
Cc: Chao Xie <chao.xie@marvell.com>
Subject: [PATCH V2 2/5] arm: mmp: use matrix_keymap for aspenite
Date: Sun, 5 May 2013 23:04:05 -0400 [thread overview]
Message-ID: <1367809448-9437-3-git-send-email-chao.xie@marvell.com> (raw)
In-Reply-To: <1367809448-9437-1-git-send-email-chao.xie@marvell.com>
Signed-off-by: Chao Xie <chao.xie@marvell.com>
---
arch/arm/mach-mmp/aspenite.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c
index 9f64d56..1e23346 100644
--- a/arch/arm/mach-mmp/aspenite.c
+++ b/arch/arm/mach-mmp/aspenite.c
@@ -205,7 +205,7 @@ struct pxa168fb_mach_info aspenite_lcd_info = {
.invert_pixclock = 0,
};
-static unsigned int aspenite_matrix_key_map[] = {
+static const unsigned int aspenite_matrix_key_map[] = {
KEY(0, 6, KEY_UP), /* SW 4 */
KEY(0, 7, KEY_DOWN), /* SW 5 */
KEY(1, 6, KEY_LEFT), /* SW 6 */
@@ -214,11 +214,15 @@ static unsigned int aspenite_matrix_key_map[] = {
KEY(4, 7, KEY_ESC), /* SW 9 */
};
+static struct matrix_keymap_data aspenite_matrix_keymap_data = {
+ .keymap = aspenite_matrix_key_map,
+ .keymap_size = ARRAY_SIZE(aspenite_matrix_key_map),
+};
+
static struct pxa27x_keypad_platform_data aspenite_keypad_info __initdata = {
.matrix_key_rows = 5,
.matrix_key_cols = 8,
- .matrix_key_map = aspenite_matrix_key_map,
- .matrix_key_map_size = ARRAY_SIZE(aspenite_matrix_key_map),
+ .matrix_keymap_data = &aspenite_matrix_keymap_data,
.debounce_interval = 30,
};
--
1.7.4.1
next prev parent reply other threads:[~2013-05-06 3:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-06 3:04 [PATCH V2 0/5] input: pxa27x-keypad: enhancement and device tree support Chao Xie
2013-05-06 3:04 ` [PATCH V2 1/5] input: pxa27x-keypad: use matrix_keymap for matrix keyes Chao Xie
2013-05-06 3:04 ` Chao Xie [this message]
2013-05-06 3:04 ` [PATCH V2 3/5] arm: mmp: use matrix_keymap for teton_bga Chao Xie
2013-05-06 3:04 ` [PATCH V2 4/5] input: pxa27x-keypad: remove the unused members at platform data Chao Xie
2013-06-17 13:10 ` Arnd Bergmann
2013-06-17 17:07 ` Dmitry Torokhov
2013-06-18 1:10 ` Chao Xie
2013-05-06 3:04 ` [PATCH V2 5/5] input: pxa27x-keypad: add device tree support Chao Xie
2013-05-13 8:02 ` [PATCH V2 0/5] input: pxa27x-keypad: enhancement and " Chao Xie
2013-05-15 6:40 ` Dmitry Torokhov
2013-06-13 2:47 ` Chao Xie
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=1367809448-9437-3-git-send-email-chao.xie@marvell.com \
--to=chao.xie@marvell.com \
--cc=dmitry.torokhov@gmail.com \
--cc=haojian.zhuang@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xiechao.mail@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).