提交 8ffc4e72 编写于 作者: M Michael Hennerich 提交者: Greg Kroah-Hartman

IIO: GYRO: ADXRS450: enforce sequential transfer delay of at least 0.1ms

Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 232b1648
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册