]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4de537a276c6cc83205e3d7cf0dd086951b7ef76
treee1ab2e612204d944373304edf2c1809fb1e47b5b
parentcc716cb25fe9808523b7383fab91e61e8d80117a
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