diff options
author | Alexandru Ardelean <aardelean@deviqon.com> | 2021-03-08 16:54:55 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-12 14:30:44 +0000 |
commit | 66a3aadec42aa001c62ae9a637398d853880a02b (patch) | |
tree | c104c9a29e04e8ba84679502e3461fe3cd006e63 /drivers/spi/spi-bcm-qspi.c | |
parent | e7f2d4c6aacd0a2cded363bb14ef9b6e752798fd (diff) | |
download | lwn-66a3aadec42aa001c62ae9a637398d853880a02b.tar.gz lwn-66a3aadec42aa001c62ae9a637398d853880a02b.zip |
spi: spi-bcm-qspi: replace 'delay_usecs' with 'delay.value' check
The 'delay_usecs' field is going away. The replacement for it is the
'delay' field. So, we should check for 'delay.value' being non-zero.
Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210308145502.1075689-4-aardelean@deviqon.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-bcm-qspi.c')
-rw-r--r-- | drivers/spi/spi-bcm-qspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c index 707fe3a5d8ef..a78e56f566dd 100644 --- a/drivers/spi/spi-bcm-qspi.c +++ b/drivers/spi/spi-bcm-qspi.c @@ -671,7 +671,7 @@ static int update_qspi_trans_byte_count(struct bcm_qspi *qspi, if (qt->byte >= qt->trans->len) { /* we're at the end of the spi_transfer */ /* in TX mode, need to pause for a delay or CS change */ - if (qt->trans->delay_usecs && + if (qt->trans->delay.value && (flags & TRANS_STATUS_BREAK_DELAY)) ret |= TRANS_STATUS_BREAK_DELAY; if (qt->trans->cs_change && |