]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: sunxi-ng: Rename the internal structures
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 30 Sep 2016 08:05:32 +0000 (10:05 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 20 Oct 2016 17:24:20 +0000 (19:24 +0200)
Rename the structures meant to be embedded in other structures to make it
consistent with the mux structure name

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu_div.h
drivers/clk/sunxi-ng/ccu_frac.c
drivers/clk/sunxi-ng/ccu_frac.h
drivers/clk/sunxi-ng/ccu_mp.h
drivers/clk/sunxi-ng/ccu_mult.h
drivers/clk/sunxi-ng/ccu_nk.h
drivers/clk/sunxi-ng/ccu_nkm.h
drivers/clk/sunxi-ng/ccu_nkmp.h
drivers/clk/sunxi-ng/ccu_nm.h

index 34c338832c0da6f5e9635bc08781f5f78626283b..06540f7cf41cba1deea274ef30a0a06003160c37 100644 (file)
@@ -20,7 +20,7 @@
 #include "ccu_mux.h"
 
 /**
- * struct _ccu_div - Internal divider description
+ * struct ccu_div_internal - Internal divider description
  * @shift: Bit offset of the divider in its register
  * @width: Width of the divider field in its register
  * @max: Maximum value allowed for that divider. This is the
@@ -36,7 +36,7 @@
  * It is basically a wrapper around the clk_divider functions
  * arguments.
  */
-struct _ccu_div {
+struct ccu_div_internal {
        u8                      shift;
        u8                      width;
 
@@ -78,7 +78,7 @@ struct _ccu_div {
 struct ccu_div {
        u32                     enable;
 
-       struct _ccu_div         div;
+       struct ccu_div_internal         div;
        struct ccu_mux_internal mux;
        struct ccu_common       common;
 };
index 5c4b10cd15b5e96d663326f35343968555805365..8b5eb7756bf7dca2cf72543c40ac331c91d323fa 100644 (file)
@@ -14,7 +14,7 @@
 #include "ccu_frac.h"
 
 bool ccu_frac_helper_is_enabled(struct ccu_common *common,
-                               struct _ccu_frac *cf)
+                               struct ccu_frac_internal *cf)
 {
        if (!(common->features & CCU_FEATURE_FRACTIONAL))
                return false;
@@ -23,7 +23,7 @@ bool ccu_frac_helper_is_enabled(struct ccu_common *common,
 }
 
 void ccu_frac_helper_enable(struct ccu_common *common,
-                           struct _ccu_frac *cf)
+                           struct ccu_frac_internal *cf)
 {
        unsigned long flags;
        u32 reg;
@@ -38,7 +38,7 @@ void ccu_frac_helper_enable(struct ccu_common *common,
 }
 
 void ccu_frac_helper_disable(struct ccu_common *common,
-                            struct _ccu_frac *cf)
+                            struct ccu_frac_internal *cf)
 {
        unsigned long flags;
        u32 reg;
@@ -53,7 +53,7 @@ void ccu_frac_helper_disable(struct ccu_common *common,
 }
 
 bool ccu_frac_helper_has_rate(struct ccu_common *common,
-                             struct _ccu_frac *cf,
+                             struct ccu_frac_internal *cf,
                              unsigned long rate)
 {
        if (!(common->features & CCU_FEATURE_FRACTIONAL))
@@ -63,7 +63,7 @@ bool ccu_frac_helper_has_rate(struct ccu_common *common,
 }
 
 unsigned long ccu_frac_helper_read_rate(struct ccu_common *common,
-                                       struct _ccu_frac *cf)
+                                       struct ccu_frac_internal *cf)
 {
        u32 reg;
 
@@ -84,7 +84,7 @@ unsigned long ccu_frac_helper_read_rate(struct ccu_common *common,
 }
 
 int ccu_frac_helper_set_rate(struct ccu_common *common,
-                            struct _ccu_frac *cf,
+                            struct ccu_frac_internal *cf,
                             unsigned long rate)
 {
        unsigned long flags;
index e4c670b1cdfea628e9ebcbc9b2f2030b26545040..7b1ee380156fa253b92bfbda098fe0f15b3050b5 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "ccu_common.h"
 
-struct _ccu_frac {
+struct ccu_frac_internal {
        u32             enable;
        u32             select;
 
@@ -33,21 +33,21 @@ struct _ccu_frac {
        }
 
 bool ccu_frac_helper_is_enabled(struct ccu_common *common,
-                               struct _ccu_frac *cf);
+                               struct ccu_frac_internal *cf);
 void ccu_frac_helper_enable(struct ccu_common *common,
-                           struct _ccu_frac *cf);
+                           struct ccu_frac_internal *cf);
 void ccu_frac_helper_disable(struct ccu_common *common,
-                            struct _ccu_frac *cf);
+                            struct ccu_frac_internal *cf);
 
 bool ccu_frac_helper_has_rate(struct ccu_common *common,
-                             struct _ccu_frac *cf,
+                             struct ccu_frac_internal *cf,
                              unsigned long rate);
 
 unsigned long ccu_frac_helper_read_rate(struct ccu_common *common,
-                                       struct _ccu_frac *cf);
+                                       struct ccu_frac_internal *cf);
 
 int ccu_frac_helper_set_rate(struct ccu_common *common,
-                            struct _ccu_frac *cf,
+                            struct ccu_frac_internal *cf,
                             unsigned long rate);
 
 #endif /* _CCU_FRAC_H_ */
index edf9215ea8ccdfacab996ac8117b635dfa379b4e..915625e97d98b6ab72753486207dedf0b61fe310 100644 (file)
@@ -29,8 +29,8 @@
 struct ccu_mp {
        u32                     enable;
 
-       struct _ccu_div         m;
-       struct _ccu_div         p;
+       struct ccu_div_internal         m;
+       struct ccu_div_internal         p;
        struct ccu_mux_internal mux;
        struct ccu_common       common;
 };
index 5d2c8dc14073337a3573f61df8cefdfd1a09c694..113780b7558e2fc0e88ae73c39894b0031429ae1 100644 (file)
@@ -4,7 +4,7 @@
 #include "ccu_common.h"
 #include "ccu_mux.h"
 
-struct _ccu_mult {
+struct ccu_mult_internal {
        u8      shift;
        u8      width;
 };
@@ -18,7 +18,7 @@ struct _ccu_mult {
 struct ccu_mult {
        u32                     enable;
 
-       struct _ccu_mult        mult;
+       struct ccu_mult_internal        mult;
        struct ccu_mux_internal mux;
        struct ccu_common       common;
 };
index 4b52da0c29fee5e544242d2e765d472eb1634ed1..437836b806961a3d65be2e20b5c5115a3a43a588 100644 (file)
@@ -30,8 +30,8 @@ struct ccu_nk {
        u32                     enable;
        u32                     lock;
 
-       struct _ccu_mult        n;
-       struct _ccu_mult        k;
+       struct ccu_mult_internal        n;
+       struct ccu_mult_internal        k;
 
        unsigned int            fixed_post_div;
 
index 35493fddd8ab3f07a30388e5bd74eb3d70026395..34580894f4d1cd7b3f7df76a780735d58d72173e 100644 (file)
@@ -29,9 +29,9 @@ struct ccu_nkm {
        u32                     enable;
        u32                     lock;
 
-       struct _ccu_mult        n;
-       struct _ccu_mult        k;
-       struct _ccu_div         m;
+       struct ccu_mult_internal        n;
+       struct ccu_mult_internal        k;
+       struct ccu_div_internal         m;
        struct ccu_mux_internal mux;
 
        struct ccu_common       common;
index 5adb0c92a6145fbfbf2034ad7b52c6f39a4d0380..a82facbc61446d6c0cc36f4771c70aaf17090574 100644 (file)
@@ -29,10 +29,10 @@ struct ccu_nkmp {
        u32                     enable;
        u32                     lock;
 
-       struct _ccu_mult        n;
-       struct _ccu_mult        k;
-       struct _ccu_div         m;
-       struct _ccu_div         p;
+       struct ccu_mult_internal        n;
+       struct ccu_mult_internal        k;
+       struct ccu_div_internal         m;
+       struct ccu_div_internal         p;
 
        struct ccu_common       common;
 };
index 0b7bcd33a2df7ccd36d7718bde5f961f70a57333..e87fd186da7830cf4d79bfb5c8b621154735487c 100644 (file)
@@ -30,9 +30,9 @@ struct ccu_nm {
        u32                     enable;
        u32                     lock;
 
-       struct _ccu_mult        n;
-       struct _ccu_div         m;
-       struct _ccu_frac        frac;
+       struct ccu_mult_internal        n;
+       struct ccu_div_internal         m;
+       struct ccu_frac_internal        frac;
 
        struct ccu_common       common;
 };