android_kernel_motorola_sm6375/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pekka Korpinen 8ce0bc6962 iio: dac: ad5446: Fix ad5622_write() return value
commit 558df982d4ead9cac628153d0d7b60feae05ddc8 upstream.

On success i2c_master_send() returns the number of bytes written. The
call from iio_write_channel_info(), however, expects the return value to
be zero on success.

This bug causes incorrect consumption of the sysfs buffer in
iio_write_channel_info(). When writing more than two characters to
out_voltage0_raw, the ad5446 write handler is called multiple times
causing unexpected behavior.

Fixes: 3ec36a2cf0 ("iio:ad5446: Add support for I2C based DACs")
Signed-off-by: Pekka Korpinen <pekka.korpinen@iki.fi>
Link: https://lore.kernel.org/r/20210929185755.2384-1-pekka.korpinen@iki.fi
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-11-17 09:48:26 +01:00
..
accel iio: accel: bma180: Fix BMA25x bandwidth register values 2021-07-28 13:31:02 +02:00
adc iio: mtk-auxadc: fix case IIO_CHAN_INFO_PROCESSED 2021-10-20 11:40:15 +02:00
afe
amplifiers
buffer
chemical
common iio: ssp_sensors: fix error code in ssp_print_mcu_debug() 2021-10-20 11:40:15 +02:00
dac iio: dac: ad5446: Fix ad5622_write() return value 2021-11-17 09:48:26 +01:00
dummy
frequency
gyro iio: gyro: fxa21002c: Balance runtime pm + use pm_runtime_resume_and_get(). 2021-07-20 16:10:41 +02:00
health
humidity iio: humidity: hdc100x: Add margin to the conversion time 2021-08-18 08:56:56 +02:00
imu iio: adis16400: do not return ints in irq handlers 2021-07-14 16:53:37 +02:00
light iio: light: opt3001: Fixed timeout error when 0 lux 2021-10-20 11:40:15 +02:00
magnetometer iio: magn: bmc150: Balance runtime pm + use pm_runtime_resume_and_get() 2021-07-20 16:10:41 +02:00
multiplexer
orientation
potentiometer
potentiostat iio: potentiostat: lmp91000: Fix alignment of buffer in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
pressure iio:pressure:mpl3115: Force alignment of buffer 2020-12-30 11:51:44 +01:00
proximity iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:45 +02:00
resolver
temperature iio: hid-sensor-temperature: Fix issues of timestamp channel 2021-03-24 11:26:43 +01:00
trigger iio: hrtimer-trigger: Mark hrtimer to expire in hard interrupt context 2020-12-30 11:51:17 +01:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: buffer: Fix demux update 2020-12-30 11:51:44 +01:00
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile