ARM: tegra20: harmony/whistler: use PIN_CFG_* to describe pin types
Varun Wadekar [Thu, 12 Apr 2012 09:41:42 +0000 (14:41 +0530)]
Change-Id: Iacb2a4764156ad59aae6c3d07ce3ee4c7a6e4636
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

arch/arm/mach-tegra/board-harmony-kbc.c
arch/arm/mach-tegra/board-whistler-kbc.c

index 156da22..fb7b1b1 100644 (file)
@@ -362,7 +362,7 @@ int __init harmony_kbc_init(void)
        BUG_ON((KBC_MAX_ROW + KBC_MAX_COL) > KBC_MAX_GPIO);
        for (i = 0; i < KBC_MAX_ROW; i++) {
                data->pin_cfg[i].num = i;
-               data->pin_cfg[i].is_row = true;
+               data->pin_cfg[i].type = PIN_CFG_ROW;
        }
 
        for (i = 0; i < KBC_MAX_COL; i++)
index 0dbcbbc..78f31a6 100644 (file)
@@ -125,12 +125,12 @@ int __init whistler_kbc_init(void)
        pr_info("KBC: whistler_kbc_init\n");
        for (i = 0; i < WHISTLER_ROW_COUNT; i++) {
                data->pin_cfg[i].num = i;
-               data->pin_cfg[i].is_row = true;
-               data->pin_cfg[i].en = true;
+               data->pin_cfg[i].type = PIN_CFG_ROW;
        }
+
        for (i = 0; i < WHISTLER_COL_COUNT; i++) {
                data->pin_cfg[i + KBC_PIN_GPIO_16].num = i;
-               data->pin_cfg[i + KBC_PIN_GPIO_16].en = true;
+               data->pin_cfg[i + KBC_PIN_GPIO_16].type = PIN_CFG_COL;
        }
 
        platform_device_register(&whistler_kbc_device);