diff mbox

[v3,3/5] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831

Message ID 1446563316-28878-4-git-send-email-rf@opensource.wolfsonmicro.com
State New
Headers show

Commit Message

Richard Fitzgerald Nov. 3, 2015, 3:08 p.m. UTC
The CS47L24 and WM1831 codecs only have two GPIO lines, but are
otherwise similar to the WM8280.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpio/gpio-arizona.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Lee Jones Jan. 11, 2016, 6:26 a.m. UTC | #1
On Tue, 03 Nov 2015, Richard Fitzgerald wrote:

> The CS47L24 and WM1831 codecs only have two GPIO lines, but are
> otherwise similar to the WM8280.
> 
> Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/gpio/gpio-arizona.c | 4 ++++
>  1 file changed, 4 insertions(+)

Applied, thanks.

> diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c
> index ca00273..624ea54 100644
> --- 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);
diff mbox

Patch

diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c
index ca00273..624ea54 100644
--- 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);