diff options
| author | Vladimir Oltean <[email protected]> | 2020-03-05 00:00:33 +0200 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-03-05 14:06:14 +0000 |
| commit | 53fadb4d90c762b560a9d0983bb5894129057ea1 (patch) | |
| tree | 3183338c66fadff172493d7f8b9c212ae02c4093 /scripts/gdb/linux/tasks.py | |
| parent | cb71d8efd74c588fc68cce2180a4861091e8fe8a (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions