]> git.baikalelectronics.ru Git - kernel.git/commit
net: ieee802154: ca8210: Use new structure for SPI transfer delays
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Thu, 27 Feb 2020 13:12:45 +0000 (15:12 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Sat, 29 Feb 2020 13:39:08 +0000 (14:39 +0100)
commit763d5a8dc04037a777fbb775d539af8933000c50
treee978129763f9147bfbd33bb9128cb1f4f730032f
parent85391364eedb20544fabcad2f15b83b18772bdb7
net: ieee802154: ca8210: Use new 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 7f4a708ba794 ("spi: introduce `delay` field for
`spi_transfer` + spi_transfer_delay_exec()")

Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@analog.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/ca8210.c