Commit eec11486 authored by Biju Das's avatar Biju Das Committed by Stephen Boyd

clk: vc3: Make vc3_clk_mux enum values based on vc3_clk enum values

Make vc3_clk_mux enum values depend upon vc3_clk enum values to avoid
any accidental breakage in the future.
Signed-off-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230824104812.147775-5-biju.das.jz@bp.renesas.comReviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 6dcf03bc
......@@ -118,14 +118,6 @@ enum vc3_div {
VC3_DIV5,
};
enum vc3_clk_mux {
VC3_SE1_MUX,
VC3_SE2_MUX,
VC3_SE3_MUX,
VC3_DIFF1_MUX,
VC3_DIFF2_MUX,
};
enum vc3_clk {
VC3_REF,
VC3_SE1,
......@@ -135,6 +127,14 @@ enum vc3_clk {
VC3_DIFF2,
};
enum vc3_clk_mux {
VC3_SE1_MUX = VC3_SE1 - 1,
VC3_SE2_MUX = VC3_SE2 - 1,
VC3_SE3_MUX = VC3_SE3 - 1,
VC3_DIFF1_MUX = VC3_DIFF1 - 1,
VC3_DIFF2_MUX = VC3_DIFF2 - 1,
};
struct vc3_clk_data {
u8 offs;
u8 bitmsk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment