Skip to content

Commit 928f9e2

Browse files
andy-shevbebarino
authored andcommitted
clk: fractional-divider: Hide clk_fractional_divider_ops from wide audience
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 4e7cf74 commit 928f9e2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

drivers/clk/clk-fractional-divider.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
struct clk_hw;
66

7+
extern const struct clk_ops clk_fractional_divider_ops;
8+
79
void clk_fractional_divider_general_approximation(struct clk_hw *hw,
810
unsigned long rate,
911
unsigned long *parent_rate,

drivers/clk/imx/clk-composite-7ulp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/err.h>
1111
#include <linux/slab.h>
1212

13+
#include "../clk-fractional-divider.h"
1314
#include "clk.h"
1415

1516
#define PCG_PCS_SHIFT 24

include/linux/clk-provider.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,6 @@ struct clk_fractional_divider {
10231023
#define CLK_FRAC_DIVIDER_ZERO_BASED BIT(0)
10241024
#define CLK_FRAC_DIVIDER_BIG_ENDIAN BIT(1)
10251025

1026-
extern const struct clk_ops clk_fractional_divider_ops;
10271026
struct clk *clk_register_fractional_divider(struct device *dev,
10281027
const char *name, const char *parent_name, unsigned long flags,
10291028
void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth,

0 commit comments

Comments
 (0)