Re: [PATCH] iio: adc: ti-ads112c14: add gpio support

From: David Lechner

Date: Fri Oct 09 2026 - 19:14:08 EST


On 9/25/26 7:46 PM, Jonathan Cameron wrote:
> On Fri, 25 Sep 2026 16:50:47 -0500
> "David Lechner (TI)" <dlechner@xxxxxxxxxxxx> wrote:
>
>> Add support for using the AIN4/GPIO0 to AIN7/GPIO3 pins as GPIOs when
>> the gpio-controller property is present.
>>


> Even better if we give that helper and the mask shorter names. resv probably enough for
> reserve for instance.
>
>
>> + ads112c14_reserve_gpio_for_ain(gpio_reserved_mask, pair[1]);
>> +
>

I tried the shorter name, but didn't like the way it looked (abbreviations
didn't seem immediately clear what they meant to me). It only saved two line
wraps anyway, so I kept reserve(d) spelled out everywhere.