From: Michael Hennerich Date: Fri, 29 Apr 2011 12:17:02 +0000 (+0200) Subject: IIO: GYRO: ADXRS450: enforce sequential transfer delay of at least 0.1ms X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8ffc4e72131eb0103abf2be382b56f4fac0123c8;p=linux-beck.git IIO: GYRO: ADXRS450: enforce sequential transfer delay of at least 0.1ms Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/gyro/adxrs450_core.c b/drivers/staging/iio/gyro/adxrs450_core.c index 5671276580f0..d73acff43846 100644 --- a/drivers/staging/iio/gyro/adxrs450_core.c +++ b/drivers/staging/iio/gyro/adxrs450_core.c @@ -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; }