realtek: fix RTL8231 gpio count
authorSander Vanheule <[email protected]>
Sat, 20 Nov 2021 19:11:31 +0000 (20:11 +0100)
committerStijn Tintel <[email protected]>
Thu, 17 Feb 2022 17:11:17 +0000 (19:11 +0200)
commit851212a71454735ebabf401d07845a642700e11e
tree4499d79120f21fda7e85faa0e2fbe39425c91759
parenteef7f17652001ce7c087b8576c0021494a0e7e7e
realtek: fix RTL8231 gpio count

The RTL8231's gpio_chip.ngpio was set to 36, which is the largest valid
GPIO index. Fix the allowed number of GPIOs by setting ngpio to 37, the
actual line count.

Reported-by: INAGAKI Hiroshi <[email protected]>
Signed-off-by: Sander Vanheule <[email protected]>
Tested-by: Stijn Tintel <[email protected]>
target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c