pinctrl: amd: fix npins for uart0 in kerncz_groups
authorJacky Hu <hengqing.hu@gmail.com>
Tue, 16 Jun 2020 01:50:24 +0000 (09:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:34 +0000 (10:19 +0200)
commit81cab381b9098b3a02db5e1c07ab91b4c82d011c
tree76c463620856018b6d8cd422273b9998b439d553
parentbcf30d452ff700b58261e5cdf2bf411311c2d9eb
pinctrl: amd: fix npins for uart0 in kerncz_groups

[ Upstream commit 69339d083dfb7786b0e0b3fc19eaddcf11fabdfb ]

uart0_pins is defined as:
static const unsigned uart0_pins[] = {135, 136, 137, 138, 139};

which npins is wronly specified as 9 later
{
.name = "uart0",
.pins = uart0_pins,
.npins = 9,
},

npins should be 5 instead of 9 according to the definition.

Signed-off-by: Jacky Hu <hengqing.hu@gmail.com>
Link: https://lore.kernel.org/r/20200616015024.287683-1-hengqing.hu@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-amd.h