OrangePi_CM5/drivers/iio
Dan Carpenter 07f8856824 iio: dac: ti-dac5571: fix an error code in probe()
commit f7a28df7db84eb3410e9eca37832efa5aed93338 upstream.

If we have an unexpected number of channels then return -EINVAL instead
of returning success.

Fixes: df38a4a72a ("iio: dac: add TI DAC5571 family support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210816183954.GB2068@kili
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-20 11:45:02 +02:00
..
accel iio: accel: stk8ba50: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:35 +02:00
adc iio: adc: max1027: Fix the number of max1X31 channels 2021-10-20 11:45:02 +02:00
afe
…
amplifiers
…
buffer
…
chemical iio: chemical: atlas: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:37 +02:00
common iio: ssp_sensors: fix error code in ssp_print_mcu_debug() 2021-10-20 11:45:02 +02:00
dac iio: dac: ti-dac5571: fix an error code in probe() 2021-10-20 11:45:02 +02:00
dummy
…
frequency iio: frequency: adf4350: disable reg and clk on error in adf4350_probe() 2021-07-14 16:55:44 +02:00
gyro iio: gyro: fxa21002c: Balance runtime pm + use pm_runtime_resume_and_get(). 2021-07-20 16:05:39 +02:00
health
…
humidity iio: humidity: hdc100x: Add margin to the conversion time 2021-08-18 08:59:04 +02:00
imu iio: adis: set GPIO reset pin direction 2021-08-18 08:59:04 +02:00
light iio: light: opt3001: Fixed timeout error when 0 lux 2021-10-20 11:45:02 +02:00
magnetometer iio: magn: bmc150: Balance runtime pm + use pm_runtime_resume_and_get() 2021-07-20 16:05:39 +02:00
multiplexer
…
orientation iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-19 10:13:13 +02:00
position
…
potentiometer
…
potentiostat iio: potentiostat: lmp91000: Fix alignment of buffer in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:37 +02:00
pressure iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-19 10:13:13 +02:00
proximity iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:46 +02:00
resolver
…
temperature iio: ltc2983: fix device probe 2021-09-18 13:40:08 +02:00
trigger
…
Kconfig
…
Makefile
…
TODO
…
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
…
industrialio-trigger.c
…
industrialio-triggered-event.c
…
inkern.c
…