WSL2-Linux-Kernel/drivers/iio/imu
Su Hui 25c441a073 iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw
[ Upstream commit c3df0e29fb7788c4b3ddf37d5ed87dda2b822943 ]

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-05 15:13:32 +01:00
..
bmi160 iio:imu:bmi160: disable regulator in error path 2022-05-09 09:14:31 +02:00
inv_icm42600 iio: imu: inv_icm42600: fix timestamp reset 2023-06-09 10:32:28 +02:00
inv_mpu6050 iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw 2024-01-05 15:13:32 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot 2022-03-02 11:48:04 +01:00
st_lsm9ds0 iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
Kconfig iio: adis16480: select CONFIG_CRC32 2023-04-13 16:48:21 +02:00
Makefile iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00
adis.c iio: adis: add '__adis_enable_irq()' implementation 2022-12-31 13:14:29 +01:00
adis16400.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16460.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16475.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16480.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis_buffer.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis_trigger.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_core.c iio: imu: fxos8700: fix MAGN sensor scale and unit 2023-02-09 11:26:43 +01:00
fxos8700_i2c.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
fxos8700_spi.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
kmx61.c iio: Fix error handling for PM 2022-03-02 11:48:04 +01:00