clk: vc5: use a dedicated struct to describe the output drivers
authorLuca Ceresoli <luca@lucaceresoli.net>
Thu, 23 Jul 2020 07:26:03 +0000 (09:26 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 23 Jul 2020 22:34:21 +0000 (15:34 -0700)
commit3bca66b08ec833c4506e97371f2c74e7de00792a
treea4f64ffa0e51d452280e67f55cdaf8dfcf087966
parent45c940184b501fc65592432a269b7a34cf2237b6
clk: vc5: use a dedicated struct to describe the output drivers

Reusing the generic struct vc5_hw_data for all blocks is handy. However it
implies we allocate space the div_int and div_frc fields even for the
output drivers where they are unused, and the clk_output_cfg0 and
clk_output_cfg0_mask fields for all components even though they are used
only for the output drivers.

Use a dedicated struct for the output drivers so that each block uses
exactly the fields it needs, not more.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Link: https://lore.kernel.org/r/20200723072603.1795-1-luca@lucaceresoli.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-versaclock5.c