mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
gpio: madera: Add support for Cirrus Logic CS47L15
As the gpio is common to all madera codecs all that is needed is to setup the correct number of GPIO pins for the CS47L15. Signed-off-by: Richard Fitzgerald <[email protected]> Signed-off-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
committed by
Linus Walleij
parent
fe2afa0d7b
commit
d06be8bc29
@@ -136,6 +136,9 @@ static int madera_gpio_probe(struct platform_device *pdev)
|
||||
madera_gpio->gpio_chip.parent = pdev->dev.parent;
|
||||
|
||||
switch (madera->type) {
|
||||
case CS47L15:
|
||||
madera_gpio->gpio_chip.ngpio = CS47L15_NUM_GPIOS;
|
||||
break;
|
||||
case CS47L35:
|
||||
madera_gpio->gpio_chip.ngpio = CS47L35_NUM_GPIOS;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user