]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: sh-msiof: Simplify BRG's Division Ratio
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 16 May 2025 13:32:21 +0000 (15:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 19 May 2025 10:55:34 +0000 (11:55 +0100)
commit39d0856f4102b6b61fdc650f90a1d9231e2bab17
tree6a4f2bfd5a3dab201ba812b7a96b4801774bace3
parent5b91dc7e3e371e7263b95c0d31151c645d6652a6
spi: sh-msiof: Simplify BRG's Division Ratio

As FIELD_PREP() masks the value to be stored in the field, the Baud Rate
Generator's Division Ratio handling can be simplified from a look-up
table to a single subtraction.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/e736221942b0381fb53dc64109a1389f7ec5f44a.1747401908.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sh-msiof.c