projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46d830b
)
drivers,inv_mpu: fix reg name err
author
Zorro Liu
<lyx@rock-chips.com>
Thu, 18 Aug 2016 06:35:00 +0000
(14:35 +0800)
committer
Zorro Liu
<lyx@rock-chips.com>
Thu, 18 Aug 2016 06:35:00 +0000
(14:35 +0800)
Change-Id: I965cdb614b2ba28bb8b61af561799fd237d7e50d
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
drivers/staging/iio/imu/inv_mpu/inv_mpu_spi.c
patch
|
blob
|
history
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 5642d2715020647b11354034456bee182283ce24..e95802f0be406ed021708c9b02bd24d4c52d53ca 100644
(file)
--- 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;