android_kernel_motorola_sm6375/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rasmus Villemoes fb0407d8cd iio: adc128s052: add proper .data members in adc128_of_match table
commit e2af60f5900c6ade53477b494ffb54690eee11f5 upstream.

Prior to commit bd5d54e4d4 ("iio: adc128s052: add ACPI _HID
AANT1280"), the driver unconditionally used spi_get_device_id() to get
the index into the adc128_config array.

However, with that commit, OF-based boards now incorrectly treat all
supported sensors as if they are an adc128s052, because all the .data
members of the adc128_of_match table are implicitly 0. Our board,
which has an adc122s021, thus exposes 8 channels whereas it really
only has two.

Fixes: bd5d54e4d4 ("iio: adc128s052: add ACPI _HID AANT1280")
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221115132324.1078169-1-linux@rasmusvillemoes.dk
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-18 11:41:41 +01:00
..
accel iio: accel: mma8452: ignore the return value of reset operation 2022-06-29 08:58:48 +02:00
adc iio: adc128s052: add proper .data members in adc128_of_match table 2023-01-18 11:41:41 +01:00
afe iio: afe: rescale: use s64 for temporary scale calculations 2022-04-15 14:17:57 +02:00
amplifiers
buffer
chemical iio:chemical:ccs811: rearrange iio trigger get and register 2022-06-29 08:58:47 +02:00
common iio: st_sensors: Add a local lock for protecting odr 2022-06-14 18:11:59 +02:00
dac iio: dac: ad5593r: Fix i2c read protocol requirements 2022-10-26 13:22:12 +02:00
dummy iio: dummy: iio_simple_dummy: check the return value of kstrdup() 2022-06-14 18:11:59 +02:00
frequency
gyro iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up() 2022-06-29 08:58:48 +02:00
health iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw 2022-12-08 11:23:02 +01:00
humidity
imu iio: Fix error handling for PM 2022-03-02 11:41:12 +01:00
light iio: light: rpr0521: add missing Kconfig dependencies 2022-12-08 11:23:02 +01:00
magnetometer iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() 2022-05-09 09:03:21 +02:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio: pressure: ms5611: fixed value compensation bug 2022-12-08 11:23:00 +01:00
proximity
resolver
temperature
trigger iio: trigger: sysfs: fix possible memory leak in iio_sysfs_trig_init() 2022-11-25 17:42:19 +01:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails 2022-12-08 11:22:59 +01:00
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c iio: inkern: only release the device node when done with it 2022-10-26 13:22:34 +02:00
Kconfig
Makefile