mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
IIO: GYRO: ADXRS450: enforce sequential transfer delay of at least 0.1ms
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
232b1648e5
commit
8ffc4e7213
1 changed files with 1 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ static int adxrs450_spi_write_reg_16(struct device *dev,
|
|||
if (ret)
|
||||
dev_err(&st->us->dev, "problem while writing 16 bit register 0x%02x\n",
|
||||
reg_address);
|
||||
msleep(1); /* enforce sequential transfer delay 0.1ms */
|
||||
mutex_unlock(&st->buf_lock);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue