]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: stm32f4: use FIELD helpers to access the PLLCFGR fields
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Tue, 14 Jan 2025 18:19:48 +0000 (19:19 +0100)
committerStephen Boyd <sboyd@kernel.org>
Wed, 15 Jan 2025 23:17:05 +0000 (15:17 -0800)
commita1328374d81b20700909f3dfcd337b13702568d8
tree04149920f3173d6085acecfa4a4515abca95b797
parent223d32eb1001dabdb3fc278683361f61cd78b0e2
clk: stm32f4: use FIELD helpers to access the PLLCFGR fields

Use GENMASK() along with FIELD_GET() and FIELD_PREP() helpers to access
the PLLCFGR fields instead of manually masking and shifting.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://lore.kernel.org/r/20250114182021.670435-4-dario.binacchi@amarulasolutions.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-stm32f4.c