IIO: GYRO: ADXRS450: enforce sequential transfer delay of at least 0.1ms
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 29 Apr 2011 12:17:02 +0000 (14:17 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 18:40:02 +0000 (11:40 -0700)
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>
drivers/staging/iio/gyro/adxrs450_core.c

index 5671276580f0829c70e3080b9e708f3edf9ed611..d73acff438462e892e683a709a67bd684285ef59 100644 (file)
@@ -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;
 }