linux/drivers/iio/common
Dan Carpenter 6c0024bcaa iio: ssp_sensors: fix error code in ssp_print_mcu_debug()
commit 4170d3dd14 upstream.

The ssp_print_mcu_debug() function should return negative error codes on
error.  Returning "length" is meaningless.  This change does not affect
runtime because the callers only care about zero/non-zero.

Reported-by: Jonathan Cameron <jic23@kernel.org>
Fixes: 50dd64d57e ("iio: common: ssp_sensors: Add sensorhub driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210914105333.GA11657@kili
Cc: <Stable@vger.kernel.org>
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
..
cros_ec_sensors iio: cros_ec: Use default frequencies when EC returns invalid information 2020-11-01 15:22:45 +00:00
hid-sensors iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-19 10:13:13 +02:00
ms_sensors
ssp_sensors iio: ssp_sensors: fix error code in ssp_print_mcu_debug() 2021-10-20 11:45:02 +02:00
st_sensors iio: common: st_sensors: fix possible infinite loop in st_sensors_irq_thread 2021-01-27 11:55:11 +01:00
Kconfig
Makefile