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

From: Andy Shevchenko

Date: Thu Feb 19 2026 - 02:52:39 EST


On Wed, Feb 18, 2026 at 06:29:25PM -0800, Dmitry Torokhov 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.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko