linux-stable/drivers/iio/imu/inv_mpu6050
Su Hui 90aa62722d iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw
[ Upstream commit c3df0e29fb ]

inv_mpu6050_sensor_show() can return -EINVAL or IIO_VAL_INT. Return the
true value rather than only return IIO_VAL_INT.

Fixes: d509844714 ("iio: imu: mpu6050: add calibration offset support")
Signed-off-by: Su Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20231030020218.65728-1-suhui@nfschina.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-01 12:39:00 +00:00
..
inv_mpu_acpi.c iio: imu: inv_mpu6050: move from strlcpy with unused retval to strscpy 2022-08-19 18:23:48 +01:00
inv_mpu_aux.c iio: imu: inv_mpu6050: helpers for using i2c master on auxiliary bus 2019-10-05 12:06:16 +01:00
inv_mpu_aux.h iio: imu: inv_mpu6050: helpers for using i2c master on auxiliary bus 2019-10-05 12:06:16 +01:00
inv_mpu_core.c iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw 2024-01-01 12:39:00 +00:00
inv_mpu_i2c.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
inv_mpu_iio.h iio: imu: mpu6050: Fix alignment for DMA safety 2022-06-14 11:53:18 +01:00
inv_mpu_magn.c drivers/iio: Remove all strcpy() uses 2021-09-14 12:00:30 +01:00
inv_mpu_magn.h iio: imu: inv_mpu6050: fix data polling interface 2020-03-08 17:28:38 +00:00
inv_mpu_ring.c iio:imu:inv_mpu6050: Use regmap_noinc_read for fifo reads. 2020-09-21 20:01:51 +01:00
inv_mpu_spi.c iio: imu: inv_mpu6050: Add support for ICM-20608-D 2022-04-04 09:11:24 +01:00
inv_mpu_trigger.c Add startup time for each chip using inv_mpu6050 driver 2021-07-19 09:51:59 +01:00
Kconfig iio: imu: inv_mpu6050: Add support for ICM-20608-D 2022-04-04 09:11:24 +01:00
Makefile iio: imu: inv_mpu6050: add MPU925x magnetometer support 2019-10-05 12:14:20 +01:00