projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7b956f
)
gpio: arizona: Support Cirrus Logic CS47L24 and WM1831
author
Richard Fitzgerald
<
[email protected]
>
Tue, 3 Nov 2015 15:08:34 +0000
(15:08 +0000)
committer
Lee Jones
<
[email protected]
>
Mon, 11 Jan 2016 06:41:39 +0000
(06:41 +0000)
The CS47L24 and WM1831 codecs only have two GPIO lines, but are
otherwise similar to the WM8280.
Signed-off-by: Richard Fitzgerald <
[email protected]
>
Acked-by: Linus Walleij <
[email protected]
>
Signed-off-by: Lee Jones <
[email protected]
>
drivers/gpio/gpio-arizona.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-arizona.c
b/drivers/gpio/gpio-arizona.c
index ca002739616af3969431482de5a9df6a6e96a975..624ea5421995d69dac130b601bf4bdfa1389d398 100644
(file)
--- a/
drivers/gpio/gpio-arizona.c
+++ b/
drivers/gpio/gpio-arizona.c
@@
-122,6
+122,10
@@
static int arizona_gpio_probe(struct platform_device *pdev)
case WM1814:
arizona_gpio->gpio_chip.ngpio = 5;
break;
+ case WM1831:
+ case CS47L24:
+ arizona_gpio->gpio_chip.ngpio = 2;
+ break;
default:
dev_err(&pdev->dev, "Unknown chip variant %d\n",
arizona->type);