Files
linux/drivers/iio/adc
Dmitry Torokhov d20bbae6e5 iio: adc: ti-ads7950: do not clobber gpio state in ti_ads7950_get()
GPIO state was inadvertently overwritten by the result of spi_sync(),
resulting in ti_ads7950_get() only returning 0 as GPIO state (or error).

Fix this by introducing a separate variable to hold the state.

Fixes: c97dce792d ("iio: adc: ti-ads7950: add GPIO support")
Reported-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2026-03-07 11:40:37 +00:00
..
2026-01-11 13:30:29 +00:00
2025-03-11 19:08:56 +00:00
2024-11-03 20:33:44 +00:00
2025-06-26 19:32:52 +01:00
2025-04-22 19:10:04 +01:00
2024-09-30 09:21:02 +01:00
2025-04-22 19:10:04 +01:00
2026-01-11 13:30:29 +00:00
2025-10-20 18:51:04 +01:00
2025-04-22 19:10:04 +01:00
2025-09-13 15:00:48 +01:00