diff options
| author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-03-05 01:00:33 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2020-03-05 17:06:14 +0300 |
| commit | 53fadb4d90c762b560a9d0983bb5894129057ea1 (patch) | |
| tree | 3183338c66fadff172493d7f8b9c212ae02c4093 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | cb71d8efd74c588fc68cce2180a4861091e8fe8a (diff) | |
| download | linux-53fadb4d90c762b560a9d0983bb5894129057ea1.tar.xz | |
spi: spi-fsl-dspi: Simplify bytes_per_word gymnastics
Reduce the if-then-else-if-then-else sequence to:
- a simple division in the case of bytes_per_word calculation
- a memcpy command with a variable size. The semantics of larger-than-8
xfer->bits_per_word is that those words are to be interpreted and
transmitted in CPU native endianness.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20200304220044.11193-2-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
