linux-stable/drivers/iio/common
Dan Carpenter 4170d3dd14 iio: ssp_sensors: fix error code in ssp_print_mcu_debug()
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>
2021-09-18 19:09:49 +01:00
..
cros_ec_sensors iio: cros: unify hw fifo attributes without API changes 2021-03-25 19:13:52 +00:00
hid-sensors iio/drivers/hid-sensor: use HZ macros 2021-09-08 11:50:26 -07:00
ms_sensors iio:common:ms_sensors:ms_sensors_i2c: add support for alternative PROM layout 2021-01-22 08:52:07 +00:00
scmi_sensors iio: scmi: fix spelling of SPDX tag 2021-06-13 17:00:18 +01:00
ssp_sensors iio: ssp_sensors: fix error code in ssp_print_mcu_debug() 2021-09-18 19:09:49 +01:00
st_sensors iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
Kconfig iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00
Makefile iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00