OSDN Git Service

iio: imu: adis: use new `delay` structure for SPI transfer delays
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Tue, 10 Dec 2019 14:07:55 +0000 (16:07 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 13 Jan 2020 22:03:36 +0000 (22:03 +0000)
commita4e6f40c77afe6e6a0076c4bcf7cbf68406a7d9f
tree8f674dd1ae1e4fa8ab1551a5fd48fb78dce3244f
parentf81ec5bf0cab29693980abbc983d0971e0efb0ea
iio: imu: adis: use new `delay` structure for SPI transfer delays

In a recent change to the SPI subsystem [1], a new `delay` struct was added
to replace the `delay_usecs`. This change replaces the current `delay_usecs`
with `delay` for this driver.

The `spi_transfer_delay_exec()` function [in the SPI framework] makes sure
that both `delay_usecs` & `delay` are used (in this order to preserve
backwards compatibility).

[1] commit bebcfd272df6485 ("spi: introduce `delay` field for
`spi_transfer` + spi_transfer_delay_exec()")

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis.c