Skip to content

Commit 4a9c3c3

Browse files
Andre-ARMwens
authored andcommitted
clk: sunxi-ng: fix order of arguments in clock macro
When introducing the SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT macro, the order of the last two arguments was different between the users and the definition: features became flags and flags became features. This just didn't end up in a disaster yet because most users ended up passing 0 for both arguments, and other clocks (for the new A523 SoC) are not yet used. Swap the order of the arguments in the definition, so that users stay untouched. Fixes: cdbb9d0 ("clk: sunxi-ng: mp: provide wrappers for setting feature flags") Signed-off-by: Andre Przywara <[email protected]> Reviewed-by: Jernej Skrabec <[email protected]> Link: https://patch.msgid.link/[email protected] [[email protected]: fix typo in commit message] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent 0af2f6b commit 4a9c3c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/sunxi-ng/ccu_mp.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ struct ccu_mp {
109109
_mshift, _mwidth, \
110110
_pshift, _pwidth, \
111111
_muxshift, _muxwidth, \
112-
_gate, _features, \
113-
_flags) \
112+
_gate, _flags, _features) \
114113
struct ccu_mp _struct = { \
115114
.enable = _gate, \
116115
.m = _SUNXI_CCU_DIV(_mshift, _mwidth), \

0 commit comments

Comments
 (0)