Skip to content
Commit 3bca66b0 authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Stephen Boyd
Browse files

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: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Link: https://lore.kernel.org/r/20200723072603.1795-1-luca@lucaceresoli.net


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 45c94018
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment