Skip to content

Commit eec1148

Browse files
bijudasbebarino
authored andcommitted
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: Biju Das <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 6dcf03b commit eec1148

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/clk/clk-versaclock3.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@ enum vc3_div {
118118
VC3_DIV5,
119119
};
120120

121-
enum vc3_clk_mux {
122-
VC3_SE1_MUX,
123-
VC3_SE2_MUX,
124-
VC3_SE3_MUX,
125-
VC3_DIFF1_MUX,
126-
VC3_DIFF2_MUX,
127-
};
128-
129121
enum vc3_clk {
130122
VC3_REF,
131123
VC3_SE1,
@@ -135,6 +127,14 @@ enum vc3_clk {
135127
VC3_DIFF2,
136128
};
137129

130+
enum vc3_clk_mux {
131+
VC3_SE1_MUX = VC3_SE1 - 1,
132+
VC3_SE2_MUX = VC3_SE2 - 1,
133+
VC3_SE3_MUX = VC3_SE3 - 1,
134+
VC3_DIFF1_MUX = VC3_DIFF1 - 1,
135+
VC3_DIFF2_MUX = VC3_DIFF2 - 1,
136+
};
137+
138138
struct vc3_clk_data {
139139
u8 offs;
140140
u8 bitmsk;

0 commit comments

Comments
 (0)