ARM: tegra: gpio: correct touch gpio_reset in platform data
Hunk Lin [Tue, 26 Feb 2013 13:10:57 +0000 (21:10 +0800)]
Touch's gpio_reset is used in some platforms. Change gpio_reset to right
value in platform data.

Bug 1242929

Change-Id: Ib806b6c8aabda4623e38c66f4f42d349777b089e
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/203300
(cherry picked from commit ff746e03305e87db108f28b9cba169c2dd86dfd4)
Reviewed-on: http://git-master/r/206224
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

arch/arm/mach-tegra/board-dalmore.c
arch/arm/mach-tegra/board-macallan.c
arch/arm/mach-tegra/board-pluto.c
arch/arm/mach-tegra/board-roth.c

index 6eefdf3..2d422d1 100644 (file)
@@ -698,7 +698,7 @@ static __initdata struct tegra_clk_init_table touch_clk_init_table[] = {
 };
 
 struct rm_spi_ts_platform_data rm31080ts_dalmore_data = {
-       .gpio_reset = 0,
+       .gpio_reset = TOUCH_GPIO_RST_RAYDIUM_SPI,
        .config = 0,
        .platform_id = RM_PLATFORM_D010,
        .name_of_clock = "clk_out_2",
index eed8b0f..7828b07 100644 (file)
@@ -631,7 +631,7 @@ static __initdata struct tegra_clk_init_table touch_clk_init_table[] = {
 };
 
 struct rm_spi_ts_platform_data rm31080ts_macallan_data = {
-       .gpio_reset = 0,
+       .gpio_reset = TOUCH_GPIO_RST_RAYDIUM_SPI,
        .config = 0,
        .platform_id = RM_PLATFORM_D010,
        .name_of_clock = "clk_out_2",
index e68986c..519cee8 100644 (file)
@@ -1256,7 +1256,7 @@ static __initdata struct tegra_clk_init_table touch_clk_init_table[] = {
 };
 
 struct rm_spi_ts_platform_data rm31080ts_pluto_data = {
-       .gpio_reset = 0,
+       .gpio_reset = TOUCH_GPIO_RST_RAYDIUM_SPI,
        .config = 0,
        .platform_id = RM_PLATFORM_P005,
        .name_of_clock = "clk_out_2",
index 33ad610..4f13d96 100644 (file)
@@ -613,7 +613,7 @@ static __initdata struct tegra_clk_init_table touch_clk_init_table[] = {
 };
 
 struct rm_spi_ts_platform_data rm31080ts_roth_data = {
-       .gpio_reset = 0,
+       .gpio_reset = TOUCH_GPIO_RST_RAYDIUM_SPI,
        .config = 0,
        .platform_id = RM_PLATFORM_D010,
        .name_of_clock = "clk_out_2",