linux/drivers/iio
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
..
accel iio: accel: adxl380: fix FIFO watermark bit 8 always written as 0 2026-03-01 11:20:10 +00:00
adc iio: adc: ti-ads7950: do not clobber gpio state in ti_ads7950_get() 2026-03-07 11:40:37 +00:00
addac treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
afe iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
amplifiers iio: amplifiers: adl8113: add driver support 2025-12-21 11:41:13 +00:00
buffer Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cdc iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
chemical iio: chemical: sps30_serial: fix buffer size in sps30_serial_read_meas() 2026-02-23 08:24:38 +00:00
common iio: hid-sensors: Use software trigger 2026-03-01 12:18:13 +00:00
dac iio: dac: mcp47feb02: Fix mutex used before initialization 2026-03-01 11:20:10 +00:00
dummy Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
filter iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
frequency iio: frequency: adf4377: Fix duplicated soft reset mask 2026-02-23 08:24:37 +00:00
gyro iio: gyro: mpu3050: Fix out-of-sequence free_irq() 2026-03-01 11:20:11 +00:00
health iio: Replace IRQF_ONESHOT with IRQF_NO_THREAD 2026-01-29 16:11:50 +00:00
humidity iio: humditiy: hdc3020: fix units for thresholds and hysteresis 2025-10-19 11:46:24 +01:00
imu iio: imu: bno055: fix BNO055_SCAN_CH_COUNT off by one 2026-03-01 12:25:43 +00:00
light iio: light: bh1780: fix PM runtime leak on error path 2026-02-23 08:24:37 +00:00
magnetometer iio: magnetometer: tlv493d: remove erroneous shift in X-axis data 2026-02-23 08:24:38 +00:00
multiplexer iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
orientation iio: orientation: hid-sensor-rotation: fix quaternion alignment 2026-03-02 20:53:16 +00:00
position iio: position: hid-sensor-custom-intel-hinge: replace sprintf() with sysfs_emit() 2025-10-19 11:59:18 +01:00
potentiometer iio: potentiometer: mcp4131: fix double application of wiper shift 2026-02-23 08:24:37 +00:00
potentiostat iio: potentiostat: Drop unnecessary -ENOMEM messages 2025-08-25 12:36:29 +01:00
pressure iio: pressure: abp2030pa: Remove IRQF_ONESHOT from devm_request_irq() 2026-03-01 11:20:10 +00:00
proximity iio: proximity: hx9023s: Protect against division by zero in set_samp_freq 2026-02-23 08:24:38 +00:00
resolver iio: resolver: ad2s1210: replace sprintf() with sysfs_emit() 2025-10-19 11:59:18 +01:00
temperature iio: Replace IRQF_ONESHOT with IRQF_NO_THREAD 2026-01-29 16:11:50 +00:00
test iio: test: drop dangling symbol in gain-time-scale helpers 2025-12-31 17:59:26 +00:00
trigger Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
iio_core_trigger.h
iio_core.h
industrialio-acpi.c iio: acpi: Add iio_get_acpi_device_name_and_data() helper function 2024-10-28 20:04:11 +00:00
industrialio-backend.c iio: backend: fix kernel-doc to avoid warnings and ensure consistency 2025-11-09 12:57:05 +00:00
industrialio-buffer.c iio: buffer: Fix wait_queue not being removed 2026-02-23 08:24:39 +00:00
industrialio-configfs.c
industrialio-core.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
industrialio-event.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
industrialio-gts-helper.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
industrialio-sw-device.c iio: core: Constify struct configfs_item_operations and configfs_group_operations 2025-12-31 17:59:26 +00:00
industrialio-sw-trigger.c iio: core: Constify struct configfs_item_operations and configfs_group_operations 2025-12-31 17:59:26 +00:00
industrialio-trigger.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
industrialio-triggered-event.c
inkern.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig
Makefile
TODO