diff mbox series

[U-Boot,V3,04/16] clk: export mux/divider ops

Message ID 20190731071654.9970-4-peng.fan@nxp.com
State Accepted
Commit 1b0d09cddb6d6b4d30f561dc8e4fb2ce904a5b58
Delegated to: Lukasz Majewski
Headers show
Series [U-Boot,V3,01/16] clk: introduce clk_dev_binded | expand

Commit Message

Peng Fan July 31, 2019, 7:01 a.m. UTC
Export mux/divider ops and divider_recalc_rate for composite usage

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---

V3:
 None
V2:
 Rebase
 Export divider_recalc_rate

 include/linux/clk-provider.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 7e44045c16..6d62f862d2 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -96,6 +96,11 @@  struct clk_divider {
 #define CLK_DIVIDER_ROUND_CLOSEST	BIT(4)
 #define CLK_DIVIDER_READ_ONLY		BIT(5)
 #define CLK_DIVIDER_MAX_AT_ZERO		BIT(6)
+extern const struct clk_ops clk_divider_ops;
+unsigned long divider_recalc_rate(struct clk *hw, unsigned long parent_rate,
+				  unsigned int val,
+				  const struct clk_div_table *table,
+				  unsigned long flags, unsigned long width);
 
 struct clk_fixed_factor {
 	struct clk	clk;