]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: rza1: Fix wrong array assignment of rza1l_swio_entries
authorJason Yan <yanaijie@huawei.com>
Fri, 17 Apr 2020 11:16:04 +0000 (19:16 +0800)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 20 Apr 2020 08:12:55 +0000 (10:12 +0200)
commit0d8a4dc686a0ec25f85f2ba5b3b307ffa021fa12
tree83c12c55e6aea952c07e7c8f64fd243179d35fae
parent9b8057e7f937f20763a90a8fc2333168af101732
pinctrl: rza1: Fix wrong array assignment of rza1l_swio_entries

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: 51f8d0bc4efe7035 ("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>
drivers/pinctrl/pinctrl-rza1.c