diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-11-09 18:59:02 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:50:10 -0800 |
commit | 2200829acd4bd9560179f06052ffcf9a3746784f (patch) | |
tree | 5463454829593e4125aec0e9760f2cb6fa0a5e85 /arch/arm/mach-tegra/board-whistler-kbc.c | |
parent | 952dced2a8ddec0e07ead16d943ab29bf09b3e18 (diff) |
arm: tegra: Configuring kbc pins as per gpio nr
Configuring the kbc pins such that the row/column is configured
in their respective GPIO number.
bug 804531
Reviewed-on: http://git-master/r/64033
(cherry picked from commit ec1c562461090170ce9515147954185c9a5bda44)
Change-Id: I5242bee91e767151022071022f195f0f1ca7bea2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I3cb02c81b88db4284337177355caaea77ef48e12
Reviewed-on: http://git-master/r/65134
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R2867df551e1c8d81fe4a7cd0034aeed9439f1e09
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler-kbc.c')
-rw-r--r-- | arch/arm/mach-tegra/board-whistler-kbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-kbc.c b/arch/arm/mach-tegra/board-whistler-kbc.c index cfa673bc7ce9..d46ae22bba05 100644 --- a/arch/arm/mach-tegra/board-whistler-kbc.c +++ b/arch/arm/mach-tegra/board-whistler-kbc.c @@ -126,8 +126,8 @@ int __init whistler_kbc_init(void) data->pin_cfg[i].en = true; } for (i = 0; i < WHISTLER_COL_COUNT; i++) { - data->pin_cfg[i + KBC_MAX_ROW].num = i; - data->pin_cfg[i + KBC_MAX_ROW].en = true; + data->pin_cfg[i + KBC_PIN_GPIO_16].num = i; + data->pin_cfg[i + KBC_PIN_GPIO_16].en = true; } platform_device_register(&whistler_kbc_device); |