From c7e77c0c2f2109fb1c0b71ff1c41ee65fd60e09d Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Fri, 23 Jun 2017 14:24:44 +0530 Subject: gpio: t186: Add SoC in the file static variables Rename the variable such that it should have SoC name as there is similar variable for other SoCs and have the SoC name there. Example: tegra_gpio_cinfo to tegra186_gpio_cinfo, Change-Id: I4d90d3d985c6645ee219665b7543f485bd10ed2d Signed-off-by: Laxman Dewangan Reviewed-on: http://git-master/r/1507778 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit --- drivers/gpio/gpio-tegra186.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-tegra186.c b/drivers/gpio/gpio-tegra186.c index 6bcb61322..2b6264e81 100644 --- a/drivers/gpio/gpio-tegra186.c +++ b/drivers/gpio/gpio-tegra186.c @@ -311,7 +311,7 @@ struct tegra_gpio_port_soc_info { .reg_offset = cind * 0x200, \ } -static struct tegra_gpio_port_soc_info tegra_gpio_cinfo[] = { +static struct tegra_gpio_port_soc_info tegra186_gpio_cinfo[] = { TEGRA_MAIN_GPIO_PORT_INFO(A, 2, 0, 7), TEGRA_MAIN_GPIO_PORT_INFO(B, 3, 0, 7), TEGRA_MAIN_GPIO_PORT_INFO(C, 3, 1, 7), @@ -338,7 +338,7 @@ static struct tegra_gpio_port_soc_info tegra_gpio_cinfo[] = { TEGRA_MAIN_GPIO_PORT_INFO(DD, -1, -1, 0), }; -static struct tegra_gpio_port_soc_info tegra_aon_gpio_cinfo[] = { +static struct tegra_gpio_port_soc_info tegra186_aon_gpio_cinfo[] = { TEGRA_AON_GPIO_PORT_INFO(S, 0, 1, 5), TEGRA_AON_GPIO_PORT_INFO(U, 0, 2, 6), TEGRA_AON_GPIO_PORT_INFO(V, 0, 4, 8), @@ -1246,8 +1246,8 @@ static const struct dev_pm_ops tegra_gpio_pm = { static const struct tegra_gpio_soc_info t186_gpio_soc = { .name = "tegra-gpio", .debug_fs_name = "tegra_gpio", - .port = tegra_gpio_cinfo, - .nports = ARRAY_SIZE(tegra_gpio_cinfo), + .port = tegra186_gpio_cinfo, + .nports = ARRAY_SIZE(tegra186_gpio_cinfo), .wake_table = tegra186_gpio_wakes, .nwakes = ARRAY_SIZE(tegra186_gpio_wakes), }; @@ -1255,8 +1255,8 @@ static const struct tegra_gpio_soc_info t186_gpio_soc = { static const struct tegra_gpio_soc_info t186_aon_gpio_soc = { .name = "tegra-gpio-aon", .debug_fs_name = "tegra-gpio-on", - .port = tegra_aon_gpio_cinfo, - .nports = ARRAY_SIZE(tegra_aon_gpio_cinfo), + .port = tegra186_aon_gpio_cinfo, + .nports = ARRAY_SIZE(tegra186_aon_gpio_cinfo), .wake_table = tegra186_aon_gpio_wakes, .nwakes = ARRAY_SIZE(tegra186_aon_gpio_wakes), }; -- cgit v1.2.2