aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-stm32.c
diff options
context:
space:
mode:
authorFabrizio Castro <fabrizio.castro.jz@renesas.com>2023-07-18 20:24:52 +0100
committerMark Brown <broonie@kernel.org>2023-07-19 14:33:33 +0100
commit7b63568fce9cb34cb0ad4caf9231555eb768c8e6 (patch)
treef0d5bc45ce7ed6427804383824900c54979a14c4 /drivers/spi/spi-stm32.c
parentspi: rzv2m-csi: Improve data types, casting and alignment (diff)
downloadlinux-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