From: Matt Ranostay Date: Mon, 22 Feb 2016 21:39:07 +0000 (-0800) Subject: iio: imu: mpu6050: use inv_mpu6050_sensor_show return code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=115f0341bcac7734a78561791700af0c5c0b207d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iio: imu: mpu6050: use inv_mpu6050_sensor_show return code Signed-off-by: Matt Ranostay Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c index a3f50703627a..5396dde919a7 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c @@ -278,7 +278,7 @@ inv_mpu6050_read_raw(struct iio_dev *indio_dev, case IIO_TEMP: /* wait for stablization */ msleep(INV_MPU6050_SENSOR_UP_TIME); - inv_mpu6050_sensor_show(st, st->reg->temperature, + ret = inv_mpu6050_sensor_show(st, st->reg->temperature, IIO_MOD_X, val); break; default: