summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-tegra/board-cardhu-kbc.c4
-rw-r--r--arch/arm/mach-tegra/board-enterprise-kbc.c4
-rw-r--r--arch/arm/mach-tegra/board-whistler-kbc.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-kbc.c b/arch/arm/mach-tegra/board-cardhu-kbc.c
index 46353b671224..a816e2b7e334 100644
--- a/arch/arm/mach-tegra/board-cardhu-kbc.c
+++ b/arch/arm/mach-tegra/board-cardhu-kbc.c
@@ -134,8 +134,8 @@ int __init cardhu_kbc_init(void)
data->pin_cfg[i].pin_type = kbc_pin_row;
}
for (i = 0; i < col_count; i++) {
- data->pin_cfg[i + row_count].num = i;
- data->pin_cfg[i + row_count].pin_type = kbc_pin_col;
+ data->pin_cfg[i + KBC_PIN_GPIO_16].num = i;
+ data->pin_cfg[i + KBC_PIN_GPIO_16].pin_type = kbc_pin_col;
}
platform_device_register(&cardhu_kbc_device);
diff --git a/arch/arm/mach-tegra/board-enterprise-kbc.c b/arch/arm/mach-tegra/board-enterprise-kbc.c
index 21f863a2db84..0c4a5587b605 100644
--- a/arch/arm/mach-tegra/board-enterprise-kbc.c
+++ b/arch/arm/mach-tegra/board-enterprise-kbc.c
@@ -93,8 +93,8 @@ int __init enterprise_kbc_init(void)
data->pin_cfg[i].en = true;
}
for (i = 0; i < ENTERPRISE_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(&tegra_kbc_device);
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);