]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1c6280806e95b8678dbd4b5d5f613e2e19465cd
treea4f64ffa0e51d452280e67f55cdaf8dfcf087966
parentc18be6e17a9773c939b4a94abf68b4478ba9c628
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