iio: imu: mpu6050: use inv_mpu6050_sensor_show return code
authorMatt Ranostay <matt.ranostay@intel.com>
Mon, 22 Feb 2016 21:39:07 +0000 (13:39 -0800)
committerJonathan Cameron <jic23@kernel.org>
Thu, 25 Feb 2016 19:48:30 +0000 (19:48 +0000)
Signed-off-by: Matt Ranostay <matt.ranostay@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c

index a3f50703627af5d308ad692467a6c630533a7865..5396dde919a78e68ba72f0a1770d431215777640 100644 (file)
@@ -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: