realtek: fix RTL8231 gpio expander for high GPIOs
authorPaul Fertser <fercerpav@gmail.com>
Mon, 20 Sep 2021 17:13:35 +0000 (20:13 +0300)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 25 Sep 2021 17:28:54 +0000 (19:28 +0200)
commit16ae56b4f9ec54b4cc4d381be7f7c327c00ddc4c
tree6b2610ba56675a110ea928e4b8b6620d0320642e
parent8ea0d08e0e9bc6ea4128048ee0ff90a775581934
realtek: fix RTL8231 gpio expander for high GPIOs

GPIOs > 31 require special handling. This patch fixes both the
initialisation and direction get/set operations.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-5.4/drivers/gpio/gpio-rtl8231.c