spi: spi-fsl-dspi: Change usage pattern of SPI_MCR_* and SPI_CTAR_* macros
authorVladimir Oltean <olteanv@gmail.com>
Sun, 18 Aug 2019 18:01:06 +0000 (21:01 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 20 Aug 2019 13:04:59 +0000 (14:04 +0100)
commit06d5dd29976fb49f3236b1e66142680619ea259d
tree897272faa09c6d96fd2d17bf8a479ab073b9773a
parent9e6f784e66cb865de25a1f5fd1706a45d9e298a7
spi: spi-fsl-dspi: Change usage pattern of SPI_MCR_* and SPI_CTAR_* macros

These are macros that accept 0 or 1 as argument (a boolean value). Their
use encourages the abuse of complex ternary operations inside their
argument list, which detracts from the code readability. Replace these
with simple if-else statements.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20190818180115.31114-6-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c