ASoC: cs42l43: Use fls to calculate the pre-divider for the PLL
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 25 Jan 2024 10:31:17 +0000 (10:31 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jan 2024 14:47:00 +0000 (14:47 +0000)
commit31c6e53a4da5fe626b99e1ebf777d751994e3281
treee341a98913482b0cc72a4469a7b7435cff20bf4b
parentfe04d1632cb4130fb47d18fe70ac292562a3b9c3
ASoC: cs42l43: Use fls to calculate the pre-divider for the PLL

Use fls to calculate the pre-divider and input frequency for the PLL,
this is marginally faster than the previous loop.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://msgid.link/r/20240125103117.2622095-7-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l43.c