From: Trilok Soni <tsoni@codeaurora.org>
To: Daniel Walker <dwalker@codeaurora.org>
Cc: linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, arve@android.com
Subject: Re: [PATCH] msm: trout: add keypad support
Date: Thu, 09 Dec 2010 12:36:54 +0530 [thread overview]
Message-ID: <4D00800E.7050004@codeaurora.org> (raw)
In-Reply-To: <1291854285-29566-1-git-send-email-dwalker@codeaurora.org>
Hi Daniel,
> --- /dev/null
> +++ b/arch/arm/mach-msm/board-trout-keypad.c
> @@ -0,0 +1,342 @@
> +/* arch/arm/mach-msm/board-trout-keypad.c
No paths please.
> + *
> + * Copyright (C) 2008 Google, Inc.
> + *
> + * This software is licensed under the terms of the GNU General Public
> + * License version 2, as published by the Free Software Foundation, and
> + * may be copied, distributed, and modified under those terms.
> + *
> + * This program is distributed in the hope that it will be useful),
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + */
> +
> +#include <linux/platform_device.h>
> +#include <linux/input.h>
> +#include <linux/interrupt.h>
> +#include <linux/input/matrix_keypad.h>
> +#include <linux/gpio_keys.h>
> +#include <asm/mach-types.h>
> +
> +#include "board-trout.h"
> +
> +static char *keycaps = "--qwerty";
> +#undef MODULE_PARAM_PREFIX
> +#define MODULE_PARAM_PREFIX "board_trout."
> +module_param_named(keycaps, keycaps, charp, 0);
I would like to know what is the use of this param?
> +
> +
> +static unsigned int trout_col_gpios[] = { 35, 34, 33, 32, 31, 23, 30, 78 };
> +static unsigned int trout_row_gpios[] = { 42, 41, 40, 39, 38, 37, 36 };
const?
> +
> +static unsigned int trout_col_gpios_evt2[] = { 35, 34, 33, 32, 31, 23, 30, 109 };
> +static unsigned int trout_row_gpios_evt2[] = { 42, 41, 40, 39, 38, 37, 36 };
const?
> +static int __init trout_init_keypad(void)
> +{
> + int ret;
> +
> + if (!machine_is_trout())
> + return 0;
> +
> + switch (system_rev) {
> + case 0:
> + /* legacy default keylayout */
> + break;
> + case 1:
> + /* v1 has a new keyboard layout */
> + trout_pdata.keymap_data = &trout_keymap_data_2_1;
> + trout_pdata.col_gpios = trout_col_gpios_evt2;
> + trout_pdata.row_gpios = trout_row_gpios_evt2;
> +
> + /* userspace needs to know about these changes as well */
?? what is the meaning of this comment?
> + break;
> + default: /* 2, 3, 4 currently */
> + /* v2 has a new keyboard layout */
> + trout_pdata.keymap_data = &trout_keymap_data_2_2;
> + trout_pdata.col_gpios = trout_col_gpios_evt2;
> + trout_pdata.row_gpios = trout_row_gpios_evt2;
> +
> + /* userspace needs to know about these changes as well */
ditto.
---Trilok Soni
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
WARNING: multiple messages have this Message-ID (diff)
From: tsoni@codeaurora.org (Trilok Soni)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] msm: trout: add keypad support
Date: Thu, 09 Dec 2010 12:36:54 +0530 [thread overview]
Message-ID: <4D00800E.7050004@codeaurora.org> (raw)
In-Reply-To: <1291854285-29566-1-git-send-email-dwalker@codeaurora.org>
Hi Daniel,
> --- /dev/null
> +++ b/arch/arm/mach-msm/board-trout-keypad.c
> @@ -0,0 +1,342 @@
> +/* arch/arm/mach-msm/board-trout-keypad.c
No paths please.
> + *
> + * Copyright (C) 2008 Google, Inc.
> + *
> + * This software is licensed under the terms of the GNU General Public
> + * License version 2, as published by the Free Software Foundation, and
> + * may be copied, distributed, and modified under those terms.
> + *
> + * This program is distributed in the hope that it will be useful),
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + */
> +
> +#include <linux/platform_device.h>
> +#include <linux/input.h>
> +#include <linux/interrupt.h>
> +#include <linux/input/matrix_keypad.h>
> +#include <linux/gpio_keys.h>
> +#include <asm/mach-types.h>
> +
> +#include "board-trout.h"
> +
> +static char *keycaps = "--qwerty";
> +#undef MODULE_PARAM_PREFIX
> +#define MODULE_PARAM_PREFIX "board_trout."
> +module_param_named(keycaps, keycaps, charp, 0);
I would like to know what is the use of this param?
> +
> +
> +static unsigned int trout_col_gpios[] = { 35, 34, 33, 32, 31, 23, 30, 78 };
> +static unsigned int trout_row_gpios[] = { 42, 41, 40, 39, 38, 37, 36 };
const?
> +
> +static unsigned int trout_col_gpios_evt2[] = { 35, 34, 33, 32, 31, 23, 30, 109 };
> +static unsigned int trout_row_gpios_evt2[] = { 42, 41, 40, 39, 38, 37, 36 };
const?
> +static int __init trout_init_keypad(void)
> +{
> + int ret;
> +
> + if (!machine_is_trout())
> + return 0;
> +
> + switch (system_rev) {
> + case 0:
> + /* legacy default keylayout */
> + break;
> + case 1:
> + /* v1 has a new keyboard layout */
> + trout_pdata.keymap_data = &trout_keymap_data_2_1;
> + trout_pdata.col_gpios = trout_col_gpios_evt2;
> + trout_pdata.row_gpios = trout_row_gpios_evt2;
> +
> + /* userspace needs to know about these changes as well */
?? what is the meaning of this comment?
> + break;
> + default: /* 2, 3, 4 currently */
> + /* v2 has a new keyboard layout */
> + trout_pdata.keymap_data = &trout_keymap_data_2_2;
> + trout_pdata.col_gpios = trout_col_gpios_evt2;
> + trout_pdata.row_gpios = trout_row_gpios_evt2;
> +
> + /* userspace needs to know about these changes as well */
ditto.
---Trilok Soni
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2010-12-09 7:06 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-09 0:24 [PATCH] msm: trout: add keypad support Daniel Walker
2010-12-09 0:24 ` Daniel Walker
2010-12-09 6:34 ` Arce, Abraham
2010-12-09 6:34 ` Arce, Abraham
2010-12-09 6:34 ` Arce, Abraham
2010-12-09 7:02 ` Trilok Soni
2010-12-09 7:02 ` Trilok Soni
2010-12-09 7:06 ` Trilok Soni [this message]
2010-12-09 7:06 ` Trilok Soni
2010-12-09 17:45 ` Daniel Walker
2010-12-09 17:45 ` Daniel Walker
2010-12-09 22:01 ` Arve Hjønnevåg
2010-12-09 22:01 ` Arve Hjønnevåg
2010-12-09 22:01 ` Arve Hjønnevåg
2010-12-09 22:03 ` Daniel Walker
2010-12-09 22:03 ` Daniel Walker
2010-12-09 22:03 ` Daniel Walker
2010-12-10 7:32 ` Trilok Soni
2010-12-10 7:32 ` Trilok Soni
2010-12-10 7:32 ` Trilok Soni
2010-12-10 17:10 ` Daniel Walker
2010-12-10 17:10 ` Daniel Walker
2010-12-13 18:41 ` Daniel Walker
2010-12-13 18:41 ` Daniel Walker
2010-12-13 18:41 ` Daniel Walker
2010-12-14 6:49 ` Trilok Soni
2010-12-14 6:49 ` Trilok Soni
2010-12-14 6:49 ` Trilok Soni
2010-12-15 7:48 ` Pavel Machek
2010-12-15 7:48 ` Pavel Machek
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=4D00800E.7050004@codeaurora.org \
--to=tsoni@codeaurora.org \
--cc=arve@android.com \
--cc=dwalker@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-input@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.