Re: [PATCH] gpio-pca953x: Fix read for chips with more than 8 gpios

From: Ricardo Ribalda Delgado
Date: Fri Aug 16 2013 - 12:29:40 EST


Hello Linus

I tried to google it when I sent it, but I didnt found anything. Glad
to hear it is alreay in the queue :)

Regards!

On Fri, Aug 16, 2013 at 5:21 PM, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:
> On Wed, Aug 14, 2013 at 4:20 PM, Ricardo Ribalda Delgado
> <ricardo.ribalda@xxxxxxxxx> wrote:
>
>> pca953x_read_single returns ONLY the value of the 8 inputs of the
>> same bank.
>>
>> off can have a value from 0 to 15, therefore we have to find the
>> offset of that gpio within that bank.
>>
>> Without this patch gpios 8-15 will always be read as zero.
>>
>> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@xxxxxxxxx>
>
> Nice! But it turns out I already had an identical patch by
> Andrew Ruder acked by Gregory Clement in my patch queue.
>
> Yours,
> Linus Walleij



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