Skip to content

Commit

Permalink
clk: sunxi-ng: mux: Rename mux macro to be consistent
Browse files Browse the repository at this point in the history
Rename the internal mux macro to be consistent with the other internal
structure macros.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  • Loading branch information
Maxime Ripard committed Aug 25, 2016
1 parent a365835 commit 89af852
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/clk/sunxi-ng/ccu_div.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct ccu_div {
struct ccu_div _struct = { \
.enable = _gate, \
.div = _SUNXI_CCU_DIV(_mshift, _mwidth), \
.mux = SUNXI_CLK_MUX(_muxshift, _muxwidth), \
.mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \
.common = { \
.reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/sunxi-ng/ccu_mp.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct ccu_mp {
.enable = _gate, \
.m = _SUNXI_CCU_DIV(_mshift, _mwidth), \
.p = _SUNXI_CCU_DIV(_pshift, _pwidth), \
.mux = SUNXI_CLK_MUX(_muxshift, _muxwidth), \
.mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \
.common = { \
.reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \
Expand Down
6 changes: 3 additions & 3 deletions drivers/clk/sunxi-ng/ccu_mux.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct ccu_mux_internal {
} variable_prediv;
};

#define SUNXI_CLK_MUX(_shift, _width) \
#define _SUNXI_CCU_MUX(_shift, _width) \
{ \
.shift = _shift, \
.width = _width, \
Expand All @@ -37,7 +37,7 @@ struct ccu_mux {

#define SUNXI_CCU_MUX(_struct, _name, _parents, _reg, _shift, _width, _flags) \
struct ccu_mux _struct = { \
.mux = SUNXI_CLK_MUX(_shift, _width), \
.mux = _SUNXI_CCU_MUX(_shift, _width), \
.common = { \
.reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \
Expand All @@ -51,7 +51,7 @@ struct ccu_mux {
_shift, _width, _gate, _flags) \
struct ccu_mux _struct = { \
.enable = _gate, \
.mux = SUNXI_CLK_MUX(_shift, _width), \
.mux = _SUNXI_CCU_MUX(_shift, _width), \
.common = { \
.reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/sunxi-ng/ccu_nkm.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct ccu_nkm {
.k = _SUNXI_CCU_MULT(_kshift, _kwidth), \
.n = _SUNXI_CCU_MULT(_nshift, _nwidth), \
.m = _SUNXI_CCU_DIV(_mshift, _mwidth), \
.mux = SUNXI_CLK_MUX(_muxshift, _muxwidth), \
.mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \
.common = { \
.reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \
Expand Down

0 comments on commit 89af852

Please sign in to comment.