clk: fractional-divider: Hide clk_fractional_divider_ops from wide audience
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 Aug 2021 17:00:23 +0000 (20:00 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 12 Aug 2021 19:42:00 +0000 (12:42 -0700)
The providers are all located in drivers/clk/ and hence no need
to export the clock operations to wider audience. Hide them by
moving to drivers/clk/clk-fractional-divider.h.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210812170025.67074-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-fractional-divider.h
drivers/clk/imx/clk-composite-7ulp.c
include/linux/clk-provider.h

index a05649eceb1709e4bd2e874158fc52647baa8ad7..f0f71d23797b7b11882f340afeabe2a80ca74cd3 100644 (file)
@@ -4,6 +4,8 @@
 
 struct clk_hw;
 
+extern const struct clk_ops clk_fractional_divider_ops;
+
 void clk_fractional_divider_general_approximation(struct clk_hw *hw,
                                                  unsigned long rate,
                                                  unsigned long *parent_rate,
index 7c4f31b31eb0a659d51a8ce258e3db5abd6f0cad..d85ba78abbb1236bebe8c4cc331e7d12e65394e1 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/err.h>
 #include <linux/slab.h>
 
+#include "../clk-fractional-divider.h"
 #include "clk.h"
 
 #define PCG_PCS_SHIFT  24
index d83b829305c05d405e6d982a09640e6e9641932c..acb8e10d289858bc14c492e83c8b89fbc80ac1c5 100644 (file)
@@ -1023,7 +1023,6 @@ struct clk_fractional_divider {
 #define CLK_FRAC_DIVIDER_ZERO_BASED            BIT(0)
 #define CLK_FRAC_DIVIDER_BIG_ENDIAN            BIT(1)
 
-extern const struct clk_ops clk_fractional_divider_ops;
 struct clk *clk_register_fractional_divider(struct device *dev,
                const char *name, const char *parent_name, unsigned long flags,
                void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth,