Commit 89af8525 authored by Maxime Ripard's avatar Maxime Ripard

clk: sunxi-ng: mux: Rename mux macro to be consistent

Rename the internal mux macro to be consistent with the other internal
structure macros.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent a3658359
...@@ -83,7 +83,7 @@ struct ccu_div { ...@@ -83,7 +83,7 @@ struct ccu_div {
struct ccu_div _struct = { \ struct ccu_div _struct = { \
.enable = _gate, \ .enable = _gate, \
.div = _SUNXI_CCU_DIV(_mshift, _mwidth), \ .div = _SUNXI_CCU_DIV(_mshift, _mwidth), \
.mux = SUNXI_CLK_MUX(_muxshift, _muxwidth), \ .mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \
.common = { \ .common = { \
.reg = _reg, \ .reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \ .hw.init = CLK_HW_INIT_PARENTS(_name, \
......
...@@ -44,7 +44,7 @@ struct ccu_mp { ...@@ -44,7 +44,7 @@ struct ccu_mp {
.enable = _gate, \ .enable = _gate, \
.m = _SUNXI_CCU_DIV(_mshift, _mwidth), \ .m = _SUNXI_CCU_DIV(_mshift, _mwidth), \
.p = _SUNXI_CCU_DIV(_pshift, _pwidth), \ .p = _SUNXI_CCU_DIV(_pshift, _pwidth), \
.mux = SUNXI_CLK_MUX(_muxshift, _muxwidth), \ .mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \
.common = { \ .common = { \
.reg = _reg, \ .reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \ .hw.init = CLK_HW_INIT_PARENTS(_name, \
......
...@@ -21,7 +21,7 @@ struct ccu_mux_internal { ...@@ -21,7 +21,7 @@ struct ccu_mux_internal {
} variable_prediv; } variable_prediv;
}; };
#define SUNXI_CLK_MUX(_shift, _width) \ #define _SUNXI_CCU_MUX(_shift, _width) \
{ \ { \
.shift = _shift, \ .shift = _shift, \
.width = _width, \ .width = _width, \
...@@ -37,7 +37,7 @@ struct ccu_mux { ...@@ -37,7 +37,7 @@ struct ccu_mux {
#define SUNXI_CCU_MUX(_struct, _name, _parents, _reg, _shift, _width, _flags) \ #define SUNXI_CCU_MUX(_struct, _name, _parents, _reg, _shift, _width, _flags) \
struct ccu_mux _struct = { \ struct ccu_mux _struct = { \
.mux = SUNXI_CLK_MUX(_shift, _width), \ .mux = _SUNXI_CCU_MUX(_shift, _width), \
.common = { \ .common = { \
.reg = _reg, \ .reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \ .hw.init = CLK_HW_INIT_PARENTS(_name, \
...@@ -51,7 +51,7 @@ struct ccu_mux { ...@@ -51,7 +51,7 @@ struct ccu_mux {
_shift, _width, _gate, _flags) \ _shift, _width, _gate, _flags) \
struct ccu_mux _struct = { \ struct ccu_mux _struct = { \
.enable = _gate, \ .enable = _gate, \
.mux = SUNXI_CLK_MUX(_shift, _width), \ .mux = _SUNXI_CCU_MUX(_shift, _width), \
.common = { \ .common = { \
.reg = _reg, \ .reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \ .hw.init = CLK_HW_INIT_PARENTS(_name, \
......
...@@ -49,7 +49,7 @@ struct ccu_nkm { ...@@ -49,7 +49,7 @@ struct ccu_nkm {
.k = _SUNXI_CCU_MULT(_kshift, _kwidth), \ .k = _SUNXI_CCU_MULT(_kshift, _kwidth), \
.n = _SUNXI_CCU_MULT(_nshift, _nwidth), \ .n = _SUNXI_CCU_MULT(_nshift, _nwidth), \
.m = _SUNXI_CCU_DIV(_mshift, _mwidth), \ .m = _SUNXI_CCU_DIV(_mshift, _mwidth), \
.mux = SUNXI_CLK_MUX(_muxshift, _muxwidth), \ .mux = _SUNXI_CCU_MUX(_muxshift, _muxwidth), \
.common = { \ .common = { \
.reg = _reg, \ .reg = _reg, \
.hw.init = CLK_HW_INIT_PARENTS(_name, \ .hw.init = CLK_HW_INIT_PARENTS(_name, \
......
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