android_kernel_xiaomi_sm7250/drivers/iio/common
Dan Carpenter c9a8362f65 iio: ssp_sensors: fix error code in ssp_print_mcu_debug()
commit 4170d3dd1467e9d78cb9af374b19357dc324b328 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:23:03 +02:00
..
cros_ec_sensors iio: cros_ec: Fix the maths for gyro scale calculation 2019-04-27 09:36:34 +02:00
hid-sensors Staging/IIO patches for 4.18-rc1 2018-06-09 10:32:39 -07:00
ms_sensors iio: common: ms_sensors: Remove unnecessary cast on void pointer 2017-04-02 09:47:57 +01:00
ssp_sensors iio: ssp_sensors: fix error code in ssp_print_mcu_debug() 2021-10-20 11:23:03 +02:00
st_sensors iio: st_sensors: rely on odr mask to know if odr can be set 2020-04-29 16:31:24 +02:00
Kconfig iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub. 2016-10-25 18:20:05 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00