diff options
| author | Vladimir Oltean <olteanv@gmail.com> | 2019-08-18 21:01:06 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2019-08-20 14:04:59 +0100 |
| commit | 06d5dd29976fb49f3236b1e66142680619ea259d (patch) | |
| tree | 897272faa09c6d96fd2d17bf8a479ab073b9773a /tools/perf/scripts/python | |
| parent | spi: spi-fsl-dspi: Demistify magic value in SPI_SR_CLEAR (diff) | |
| download | linux-06d5dd29976fb49f3236b1e66142680619ea259d.tar.gz linux-06d5dd29976fb49f3236b1e66142680619ea259d.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
