Skip to content

Commit

Permalink
realtek: use automatic GPIO numbering for RTL8231
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Stijn Tintel <[email protected]>
  • Loading branch information
svanheule authored and stintel committed Feb 17, 2022
1 parent 851212a commit 5da2e0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5da2e0c

Please sign in to comment.