Browse Source

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>
Matt Ranostay 9 years ago
parent
commit
115f0341bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/iio/imu/inv_mpu6050/inv_mpu_core.c

+ 1 - 1
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:
 		case IIO_TEMP:
 			/* wait for stablization */
 			/* wait for stablization */
 			msleep(INV_MPU6050_SENSOR_UP_TIME);
 			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);
 						IIO_MOD_X, val);
 			break;
 			break;
 		default:
 		default: