clk: microchip: mpfs: simplify control reg access
authorConor Dooley <conor.dooley@microchip.com>
Fri, 9 Sep 2022 12:31:19 +0000 (13:31 +0100)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 14 Sep 2022 07:57:06 +0000 (10:57 +0300)
commit5fa27b77a14041d709edcd4497d419b78aa00849
treee1ab2e612204d944373304edf2c1809fb1e47b5b
parent52fe6b5293073be8a9c9c0b45424b596d11e4c6e
clk: microchip: mpfs: simplify control reg access

The control reg addresses are known when the clocks are registered, so
we can, instead of assigning a base pointer to the structs, assign the
control reg addresses directly. Accordingly, remove the interim
variables used during reads/writes to those registers.

Reviewed-by: Daire McNamara <daire.mcnamara@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220909123123.2699583-11-conor.dooley@microchip.com
drivers/clk/microchip/clk-mpfs.c