OpenCloudOS-Kernel/drivers/pinctrl/tegra
Arnd Bergmann d18b2a0f1a pinctrl: tegra: avoid duplicate field initializers
The drv_reg field is initialized both in the DRV_PINGROUP_ENTRY_N/DRV_PINGROUP_ENTRY_Y
macros and in DRV_PINGROUP_Y. Since each pingroup expands both macros, the are
always duplicate and turning on -Woverride-init (which is disabled by default)
causes a huge amount of warnings like:

drivers/pinctrl/tegra/pinctrl-tegra234.c:1384:27: error: initialized field overwritten [-Werror=override-init]
 1384 | #define DRV_PINGROUP_Y(r) ((r))
      |                           ^
drivers/pinctrl/tegra/pinctrl-tegra234.c:1397:28: note: in expansion of macro 'DRV_PINGROUP_Y'
 1397 |                 .drv_reg = DRV_PINGROUP_Y(r),                   \
      |                            ^~~~~~~~~~~~~~
drivers/pinctrl/tegra/pinctrl-tegra234.c:1447:49: note: in expansion of macro 'DRV_PINGROUP_ENTRY_Y'
 1447 | #define drive_soc_gpio08_pb0                    DRV_PINGROUP_ENTRY_Y(0x500c,    12,     5,      20,     5,      -1,     -1,     -1,     -1,     0)
      |                                                 ^~~~~~~~~~~~~~~~~~~~
...

Remove the intialization that is never used here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230616161603.1127687-1-arnd@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-19 10:54:35 +02:00
..
Kconfig pinctrl: tegra: Add Tegra234 pinmux driver 2023-06-09 09:14:44 +02:00
Makefile pinctrl: tegra: Add Tegra234 pinmux driver 2023-06-09 09:14:44 +02:00
pinctrl-tegra-xusb.c pinctrl: tegra: Add missing header(s) 2022-10-24 17:06:47 +03:00
pinctrl-tegra.c pinctrl: tegra: Consistently refer to SoC data 2023-06-01 13:17:35 +02:00
pinctrl-tegra.h pinctrl: tegra: Duplicate pinmux functions table 2023-06-01 13:17:35 +02:00
pinctrl-tegra20.c pinctrl: tegra: Duplicate pinmux functions table 2023-06-01 13:17:35 +02:00
pinctrl-tegra30.c pinctrl: tegra: Duplicate pinmux functions table 2023-06-01 13:17:35 +02:00
pinctrl-tegra114.c pinctrl: tegra: Duplicate pinmux functions table 2023-06-01 13:17:35 +02:00
pinctrl-tegra124.c pinctrl: tegra: Duplicate pinmux functions table 2023-06-01 13:17:35 +02:00
pinctrl-tegra194.c pinctrl: tegra: Duplicate pinmux functions table 2023-06-01 13:17:35 +02:00
pinctrl-tegra210.c pinctrl: tegra: Duplicate pinmux functions table 2023-06-01 13:17:35 +02:00
pinctrl-tegra234.c pinctrl: tegra: avoid duplicate field initializers 2023-06-19 10:54:35 +02:00