Skip to content

Commit 103afc8

Browse files
thierryredinglinusw
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Tested-by: Vidya Sagar <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent f67499f commit 103afc8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

drivers/pinctrl/tegra/pinctrl-tegra194.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,14 @@
2424

2525
/* Define unique ID for each pins */
2626
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,
3029
};
3130

3231
/* Table for pin descriptor */
3332
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"),
3835
};
3936

4037
static const unsigned int pex_l5_clkreq_n_pgg0_pins[] = {

0 commit comments

Comments
 (0)