mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drivers,inv_mpu: fix reg name err
Change-Id: I965cdb614b2ba28bb8b61af561799fd237d7e50d Signed-off-by: Zorro Liu <lyx@rock-chips.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user