pinctrl: tegra: Renumber the GG.0 and GG.1 pins
authorThierry Reding <treding@nvidia.com>
Thu, 19 Mar 2020 12:27:36 +0000 (13:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Mar 2020 10:44:59 +0000 (11:44 +0100)
There is no need to define these at a specific offset since they are the
only pins defined for this SoC generation. Begin numbering them at 0.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200319122737.3063291-9-thierry.reding@gmail.com
Tested-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/tegra/pinctrl-tegra194.c

index 61fc7e680788440dceb9df701496dd3f90c02f1a..61afe5fe9dec360bdb2318eaa56c020836a278fa 100644 (file)
 
 /* Define unique ID for each pins */
 enum pin_id {
-       TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0 = 256,
-       TEGRA_PIN_PEX_L5_RST_N_PGG1 = 257,
-       TEGRA_PIN_NUM_GPIOS = 258,
+       TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0,
+       TEGRA_PIN_PEX_L5_RST_N_PGG1,
 };
 
 /* Table for pin descriptor */
 static const struct pinctrl_pin_desc tegra194_pins[] = {
-       PINCTRL_PIN(TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0,
-                   "TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0"),
-       PINCTRL_PIN(TEGRA_PIN_PEX_L5_RST_N_PGG1,
-                   "TEGRA_PIN_PEX_L5_RST_N_PGG1"),
+       PINCTRL_PIN(TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0, "PEX_L5_CLKREQ_N_PGG0"),
+       PINCTRL_PIN(TEGRA_PIN_PEX_L5_RST_N_PGG1, "PEX_L5_RST_N_PGG1"),
 };
 
 static const unsigned int pex_l5_clkreq_n_pgg0_pins[] = {