Re: [PATCH v2 1/4] iio: adc: ti-ads7950: normalize return value of gpio_get

From: Dmitry Torokhov

Date: Sun Feb 22 2026 - 16:23:11 EST


On Sun, Feb 22, 2026 at 02:03:15PM +0000, Jonathan Cameron wrote:
> On Wed, 18 Feb 2026 18:29:25 -0800
> Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> wrote:
>
> > The GPIO get callback is expected to return 0 or 1 (or a negative error
> > code). Ensure that the value returned by ti_ads7950_get() for output
> > pins is normalized to the [0, 1] range.
> Fixes? I'm not quite sure with something that says 'expected'

Will add a tag.

Thanks.

--
Dmitry