Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: tegra: Renumber the GG.0 and GG.1 pins

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>

authored by

Thierry Reding and committed by
Linus Walleij
103afc8e f67499f8

+4 -7
+4 -7
drivers/pinctrl/tegra/pinctrl-tegra194.c
··· 24 24 25 25 /* Define unique ID for each pins */ 26 26 enum pin_id { 27 - TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0 = 256, 28 - TEGRA_PIN_PEX_L5_RST_N_PGG1 = 257, 29 - TEGRA_PIN_NUM_GPIOS = 258, 27 + TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0, 28 + TEGRA_PIN_PEX_L5_RST_N_PGG1, 30 29 }; 31 30 32 31 /* Table for pin descriptor */ 33 32 static const struct pinctrl_pin_desc tegra194_pins[] = { 34 - PINCTRL_PIN(TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0, 35 - "TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0"), 36 - PINCTRL_PIN(TEGRA_PIN_PEX_L5_RST_N_PGG1, 37 - "TEGRA_PIN_PEX_L5_RST_N_PGG1"), 33 + PINCTRL_PIN(TEGRA_PIN_PEX_L5_CLKREQ_N_PGG0, "PEX_L5_CLKREQ_N_PGG0"), 34 + PINCTRL_PIN(TEGRA_PIN_PEX_L5_RST_N_PGG1, "PEX_L5_RST_N_PGG1"), 38 35 }; 39 36 40 37 static const unsigned int pex_l5_clkreq_n_pgg0_pins[] = {