From f9fb90ff674ac5899c71f1e4333339ccf58f28d8 Mon Sep 17 00:00:00 2001 From: Zorro Liu Date: Thu, 18 Aug 2016 14:35:00 +0800 Subject: [PATCH] drivers,inv_mpu: fix reg name err Change-Id: I965cdb614b2ba28bb8b61af561799fd237d7e50d Signed-off-by: Zorro Liu --- drivers/staging/iio/imu/inv_mpu/inv_mpu_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/imu/inv_mpu/inv_mpu_spi.c b/drivers/staging/iio/imu/inv_mpu/inv_mpu_spi.c index 5642d2715020..e95802f0be40 100644 --- a/drivers/staging/iio/imu/inv_mpu/inv_mpu_spi.c +++ b/drivers/staging/iio/imu/inv_mpu/inv_mpu_spi.c @@ -62,7 +62,7 @@ static int inv_spi_read(struct inv_mpu_iio_s *st, u8 reg, int len, u8 *data) d[0] = (reg | INV_SPI_READ); - if ((reg == REG_FIFO_R_W) || (reg == FIFO_COUNT_BYTE)) + if ((reg == REG_FIFO_R_W) || (reg == REG_FIFO_COUNT_H)) spi->max_speed_hz = 20000000; else spi->max_speed_hz = 1000000; -- 2.34.1