summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSachin Nikam <snikam@nvidia.com>2011-02-01 20:00:21 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-02-02 17:19:48 -0800
commitc412dee2dce46db58ba2c9c58faa3a19f5cdba2e (patch)
tree2a9c354694820e41ba03f6f424992de1fbd05825 /drivers
parent4a321ede279569a45ebbd224956f8fbd93fe2260 (diff)
input: tegra-kbc: Correcting column index
Bug 785837 Change-Id: I008a37b17205d058d6ba12a7a34a5cdc747435d7 Reviewed-on: http://git-master/r/17893 Tested-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Victor Ryabukhin <vryabukhin@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/keyboard/tegra-kbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c
index b524436b88f5..cddd9cce2b29 100644
--- a/drivers/input/keyboard/tegra-kbc.c
+++ b/drivers/input/keyboard/tegra-kbc.c
@@ -148,7 +148,7 @@ end:
static int tegra_kbc_keycode(struct tegra_kbc *kbc, int r, int c, bool fn_key)
{
- int code_index = kbc->row_seq[r] * kbc->ncols + kbc->col_seq[r];
+ int code_index = kbc->row_seq[r] * kbc->ncols + kbc->col_seq[c];
if (!fn_key)
return kbc->plain_keycode[code_index];
else