]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: Use new structure for SPI transfer delays
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Thu, 27 Feb 2020 14:06:34 +0000 (16:06 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 12 Mar 2020 13:42:39 +0000 (15:42 +0200)
commita5f807e365c6edf846cb064f7a4057defa75363b
treecee3ee76cc57df700857e37705c840f3463d0c8b
parent092a37972c71e75e8a936e4831a8edcc8d3b84aa
libertas: 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 2b6d42495042 ("spi: introduce `delay` field for
`spi_transfer` + spi_transfer_delay_exec()")

Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@analog.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas/if_spi.c