Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1250737

[PATCH v2 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831

From Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831
Date 2015-10-19 16:20 +0200
Message-ID <qljs6-6P9-9@gated-at.bofh.it> (permalink)
References <qljs6-6P9-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/gpio/gpio-arizona.c | 4 ++++
 1 file changed, 4 insertions(+)

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);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] Add support for Cirrus Logic CS47L24 and WM1831 codecs Richard Fitzgerald <rf@opensource.wolfsonmicro.com> - 2015-10-19 16:20 +0200
  [PATCH v2 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831 Richard Fitzgerald <rf@opensource.wolfsonmicro.com> - 2015-10-19 16:20 +0200
    Re: [PATCH v2 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831 Linus Walleij <linus.walleij@linaro.org> - 2015-10-27 11:00 +0100
      Re: [PATCH v2 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and  WM1831 Lee Jones <lee.jones@linaro.org> - 2015-10-28 12:50 +0100
        Re: [PATCH v2 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831 Linus Walleij <linus.walleij@linaro.org> - 2015-10-29 15:30 +0100
  Re: [alsa-devel] [PATCH v2 0/3] Add support for Cirrus Logic CS47L24  and WM1831 codecs Caleb Crome <caleb@crome.org> - 2015-10-19 17:00 +0200
    Re: [alsa-devel] [PATCH v2 0/3] Add support for Cirrus Logic  CS47L24 and WM1831 codecs Richard Fitzgerald <rf@opensource.wolfsonmicro.com> - 2015-10-19 17:10 +0200
      Re: [alsa-devel] [PATCH v2 0/3] Add support for Cirrus Logic CS47L24  and WM1831 codecs Caleb Crome <caleb@crome.org> - 2015-10-19 17:20 +0200
  Re: [PATCH v2 3/3] ASoC: cs47l24: Add driver for Cirrus Logic  CS47L24 and WM1831 codecs Mark Brown <broonie@kernel.org> - 2015-10-23 01:40 +0200
  Re: [PATCH v2 1/3] mfd: arizona: Support Cirrus Logic CS47L24 and  WM1831 Lee Jones <lee.jones@linaro.org> - 2015-10-30 19:30 +0100

csiph-web