iio: imu: inv_mpu6050: return callee's error code rather than -EINVAL
authorSu Hui <suhui@nfschina.com>
Mon, 30 Oct 2023 02:07:53 +0000 (10:07 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 26 Nov 2023 17:06:33 +0000 (17:06 +0000)
commit39dac9d0511ff735a4937c5aded7c84aed55f57e
treee5cc7bdf51abd20b46a6d09d4794dc57205e5e61
parented73c4f13d5b63acce2b6f8c5e73c465479c4940
iio: imu: inv_mpu6050: return callee's error code rather than -EINVAL

regmap_bulk_write()/regmap_bulk_read() return zero or negative error
code, return the callee's error code is better than '-EINVAL'.

Signed-off-by: Su Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20231030020752.67630-1-suhui@nfschina.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c