aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files-5.10/drivers
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2021-11-20 20:11:32 +0100
committerStijn Tintel <stijn@linux-ipv6.be>2022-02-17 19:11:33 +0200
commit5da2e0cc20b4ef1bf91ec17d726e8cf9a322940e (patch)
treea071a1d70755c7dbc1eb80087bdeb4816d800db2 /target/linux/realtek/files-5.10/drivers
parent851212a71454735ebabf401d07845a642700e11e (diff)
downloadupstream-5da2e0cc20b4ef1bf91ec17d726e8cf9a322940e.tar.gz
upstream-5da2e0cc20b4ef1bf91ec17d726e8cf9a322940e.tar.bz2
upstream-5da2e0cc20b4ef1bf91ec17d726e8cf9a322940e.zip
realtek: use automatic GPIO numbering for RTL8231
Set the gpio_chip.base to -1 to use automatic GPIO line indexing. Setting base to 0 or a positive number is deprecated and should not be used. Signed-off-by: Sander Vanheule <sander@svanheule.net> Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'target/linux/realtek/files-5.10/drivers')
-rw-r--r--target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c b/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c
index f06c2d81df..013dc23838 100644
--- a/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c
+++ b/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c
@@ -311,7 +311,7 @@ static int rtl8231_gpio_probe(struct platform_device *pdev)
rtl8231_init(gpios);
gpios->dev = dev;
- gpios->gc.base = 160;
+ gpios->gc.base = -1;
gpios->gc.ngpio = 37;
gpios->gc.label = "rtl8231";
gpios->gc.parent = dev;