Commit 3e2405f0 authored by Alexandru Ardelean's avatar Alexandru Ardelean Committed by Mark Brown

spi: spi-falcon: extend warning to `delay` as well

The WARN_ON macro prints a warning in syslog if `delay_usecs` is non-zero.
However, with the new intermediate `delay`, the warning should also be
printed.
Signed-off-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20190926105147.7839-18-alexandru.ardelean@analog.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3984d39b
...@@ -377,7 +377,7 @@ static int falcon_sflash_xfer_one(struct spi_master *master, ...@@ -377,7 +377,7 @@ static int falcon_sflash_xfer_one(struct spi_master *master,
m->actual_length += t->len; m->actual_length += t->len;
WARN_ON(t->delay_usecs || t->cs_change); WARN_ON(t->delay_usecs || t->delay.value || t->cs_change);
spi_flags = 0; spi_flags = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment