diff options
author | 2023-07-18 20:24:52 +0100 | |
---|---|---|
committer | 2023-07-19 14:33:33 +0100 | |
commit | 7b63568fce9cb34cb0ad4caf9231555eb768c8e6 (patch) | |
tree | f0d5bc45ce7ed6427804383824900c54979a14c4 /drivers/spi/spi-stm32.c | |
parent | spi: rzv2m-csi: Improve data types, casting and alignment (diff) | |
download | linux-rng-7b63568fce9cb34cb0ad4caf9231555eb768c8e6.tar.xz linux-rng-7b63568fce9cb34cb0ad4caf9231555eb768c8e6.zip |
spi: rzv2m-csi: Get rid of the x_trg{_words} tables
Table x_trg can be replaced with ilog2(), and table x_trg_words
can be replaced with rounddown_pow_of_two().
Replace the tables usage with the corresponding macros.
While at it, remove a couple of unnecessary empty lines.
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230718192453.543549-4-fabrizio.castro.jz@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-stm32.c')
0 files changed, 0 insertions, 0 deletions