summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@intel.com>2016-02-22 22:39:07 +0100
committerJonathan Cameron <jic23@kernel.org>2016-02-25 20:48:30 +0100
commit115f0341bcac7734a78561791700af0c5c0b207d (patch)
treebe1465bff7da0c00e4a301b4aff5fd35ef535054 /drivers/iio/imu
parentstaging: iio: isl29018: use regmap to retrieve struct device (diff)
downloadlinux-115f0341bcac7734a78561791700af0c5c0b207d.tar.xz
linux-115f0341bcac7734a78561791700af0c5c0b207d.zip
iio: imu: mpu6050: use inv_mpu6050_sensor_show return code
Signed-off-by: Matt Ranostay <matt.ranostay@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu')
-rw-r--r--drivers/iio/imu/inv_mpu6050/inv_mpu_core.c2
1 files changed, 1 insertions, 1 deletions
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: