diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-08 15:04:03 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-11 08:32:49 +0100 |
commit | b9658388d7ffdc7f453c03763e91dba98a81dbda (patch) | |
tree | 77176965c980594f232fbeba4eb6cefa7e204b92 | |
parent | af616888c86534b0f6a9754b2cf63adf062fdb7d (diff) | |
download | barebox-b9658388d7ffdc7f453c03763e91dba98a81dbda.tar.gz barebox-b9658388d7ffdc7f453c03763e91dba98a81dbda.tar.xz |
clk: export clk_gate_is_enabled()
Will be needed by stm32 clk support.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/clk/clk-gate.c | 2 | ||||
-rw-r--r-- | include/linux/clk.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index 89240ff794..b2b160555e 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -56,7 +56,7 @@ static void clk_gate_disable(struct clk *clk) clk_gate_endisable(clk, 0); } -static int clk_gate_is_enabled(struct clk *clk) +int clk_gate_is_enabled(struct clk *clk) { struct clk_gate *g = container_of(clk, struct clk_gate, clk); u32 val; diff --git a/include/linux/clk.h b/include/linux/clk.h index 1f20eb2772..6081a1af87 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -399,6 +399,8 @@ struct clk_gate { unsigned flags; }; +int clk_gate_is_enabled(struct clk *clk); + #define to_clk_gate(_clk) container_of(_clk, struct clk_gate, clk) extern struct clk_ops clk_gate_ops; |