diff mbox

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

Message ID 1445264027-7357-3-git-send-email-rf@opensource.wolfsonmicro.com (mailing list archive)
State New, archived
Headers show

Commit Message

Richard Fitzgerald Oct. 19, 2015, 2:13 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>
---
 drivers/gpio/gpio-arizona.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Linus Walleij Oct. 27, 2015, 9:58 a.m. UTC | #1
On Mon, Oct 19, 2015 at 4:13 PM, Richard Fitzgerald
<rf@opensource.wolfsonmicro.com> 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>

Lee can merge this into the MFD tree with patch 1/3 if he likes,
I guess that's simplest.

Yours,
Linus Walleij
Lee Jones Oct. 28, 2015, 11:42 a.m. UTC | #2
On Tue, 27 Oct 2015, Linus Walleij wrote:

> On Mon, Oct 19, 2015 at 4:13 PM, Richard Fitzgerald
> <rf@opensource.wolfsonmicro.com> 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>
> 
> Lee can merge this into the MFD tree with patch 1/3 if he likes,
> I guess that's simplest.

I can do.  Do you require a pull-request?
Linus Walleij Oct. 29, 2015, 2:29 p.m. UTC | #3
On Wed, Oct 28, 2015 at 12:42 PM, Lee Jones <lee.jones@linaro.org> wrote:
> On Tue, 27 Oct 2015, Linus Walleij wrote:
>
>> On Mon, Oct 19, 2015 at 4:13 PM, Richard Fitzgerald
>> <rf@opensource.wolfsonmicro.com> 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>
>>
>> Lee can merge this into the MFD tree with patch 1/3 if he likes,
>> I guess that's simplest.
>
> I can do.  Do you require a pull-request?

Nah. I usually optimistically assume that these (small) things will
not clash.

Yours,
Linus Walleij
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);