[PATCH v2 0/4] ti-ads7950: fix gpio handling and facelift
From: Dmitry Torokhov
Date: Wed Feb 18 2026 - 21:30:11 EST
The original reason for this series is to make sure ti_ads7950_get()
returns result in range [0, 1] or a negative error code to comply with
gpiolib requirement.
During review David noticed the fact that the function also clobbers
gpio state. Fixing that lead to adding cleanups using guard() and devm.
v2:
- style fixes in #1 (per David)
- fix to not clobber state (#2, new)
- #3 and #4 (new)
Dmitry Torokhov (4):
iio: adc: ti-ads7950: normalize return value of gpio_get
iio: adc: ti-ads7950: do not clobber gpio state in ti_ads7950_get()
iio: adc: ti-ads7950: switch to using guard() notation
iio: adc: ti-ads7950: complete conversion to using managed resources
drivers/iio/adc/ti-ads7950.c | 206 +++++++++++++++--------------------
1 file changed, 90 insertions(+), 116 deletions(-)
Thanks.
--
Dmitry