spi: rzv2m-csi: Get rid of the x_trg{_words} tables
authorFabrizio Castro <fabrizio.castro.jz@renesas.com>
Tue, 18 Jul 2023 19:24:52 +0000 (20:24 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 19 Jul 2023 13:33:33 +0000 (14:33 +0100)
commit7b63568fce9cb34cb0ad4caf9231555eb768c8e6
treef0d5bc45ce7ed6427804383824900c54979a14c4
parent8dc4038a026a79b6222a43ccf7adf070c4ba54ea
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>
drivers/spi/spi-rzv2m-csi.c