mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
pinctrl: rza1: Fix wrong array assignment of rza1l_swio_entries
[ Upstream commit4b4e8e93ec] The rza1l_swio_entries referred to the wrong array rza1h_swio_pins, which was intended to be rza1l_swio_pins. So let's fix it. This is detected by the following gcc warning: drivers/pinctrl/pinctrl-rza1.c:401:35: warning: ‘rza1l_swio_pins’ defined but not used [-Wunused-const-variable=] static const struct rza1_swio_pin rza1l_swio_pins[] = { ^~~~~~~~~~~~~~~ Fixes:039bc58e73("pinctrl: rza1: Add support for RZ/A1L") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Link: https://lore.kernel.org/r/20200417111604.19143-1-yanaijie@huawei.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
af59f7fdfa
commit
089e03e18d
@@ -421,7 +421,7 @@ static const struct rza1_bidir_entry rza1l_bidir_entries[RZA1_NPORTS] = {
|
||||
};
|
||||
|
||||
static const struct rza1_swio_entry rza1l_swio_entries[] = {
|
||||
[0] = { ARRAY_SIZE(rza1h_swio_pins), rza1h_swio_pins },
|
||||
[0] = { ARRAY_SIZE(rza1l_swio_pins), rza1l_swio_pins },
|
||||
};
|
||||
|
||||
/* RZ/A1L (r7s72102x) pinmux flags table */
|
||||
|
||||
Reference in New Issue
Block a user