Re: [PATCH RESEND v3 12/17] iio: adc: ad7768-1: Add GPIO controller support
From: Linus Walleij
Date: Wed Feb 19 2025 - 15:39:07 EST
Hi Jonathan/Sergiu,
thanks for your patch!
On Wed, Feb 12, 2025 at 7:20 PM Jonathan Santos
<Jonathan.Santos@xxxxxxxxxx> wrote:
> From: Sergiu Cuciurean <sergiu.cuciurean@xxxxxxxxxx>
>
> The AD7768-1 has the ability to control other local hardware (such as gain
> stages),to power down other blocks in the signal chain, or read local
> status signals over the SPI interface.
>
> This change exports the AD7768-1's four gpios and makes them accessible
> at an upper layer.
>
> Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@xxxxxxxxxx>
> Co-developed-by: Jonathan Santos <Jonathan.Santos@xxxxxxxxxx>
> Signed-off-by: Jonathan Santos <Jonathan.Santos@xxxxxxxxxx>
Is it not possible to use the gpio regmap library in this driver
like we do in drivers/iio/addac/stx104.c?
It cuts down the code size of simple GPIO chips on random
chips quite a lot.
Yours,
Linus Walleij