linux/drivers/iio/common/ssp_sensors
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
..
Kconfig
Makefile
ssp_dev.c iio: ssp: use PLATFORM_DEVID_NONE 2020-09-29 17:27:06 +01:00
ssp_iio_sensor.h
ssp_iio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
ssp_spi.c iio: ssp_sensors: fix error code in ssp_print_mcu_debug() 2021-09-18 19:09:49 +01:00
ssp.h iio: ssp_sensors: Convert to use GPIO descriptors 2019-12-15 11:42:17 +00:00