From: Zorro Liu Date: Thu, 18 Aug 2016 06:35:00 +0000 (+0800) Subject: drivers,inv_mpu: fix reg name err X-Git-Tag: firefly_0821_release~1744 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f9fb90ff674ac5899c71f1e4333339ccf58f28d8;p=firefly-linux-kernel-4.4.55.git drivers,inv_mpu: fix reg name err Change-Id: I965cdb614b2ba28bb8b61af561799fd237d7e50d Signed-off-by: Zorro Liu --- 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;