diff options
author | Joachim Eastwood <manabian@gmail.com> | 2015-10-24 18:55:22 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-10-26 20:36:55 +0100 |
commit | be68bf883170b3e4123fc4ff3745e38fb45a573e (patch) | |
tree | 4c36a606a38716155cd10a6f5d1ad95588dba4f4 /drivers/clk | |
parent | clk: Add stubs for of_clk_*() APIs when CONFIG_OF=n (diff) | |
download | linux-be68bf883170b3e4123fc4ff3745e38fb45a573e.tar.xz linux-be68bf883170b3e4123fc4ff3745e38fb45a573e.zip |
clk: Add clk_hw_is_enabled() for use by clk providers
Add clk_hw_is_enabled() to the provider APIs so clk providers can
use a struct clk_hw instead of a struct clk to check if a clk is
enabled or not.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 2eae76f21d6f..f13c3f4228d4 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -427,6 +427,11 @@ bool clk_hw_is_prepared(const struct clk_hw *hw) return clk_core_is_prepared(hw->core); } +bool clk_hw_is_enabled(const struct clk_hw *hw) +{ + return clk_core_is_enabled(hw->core); +} + bool __clk_is_enabled(struct clk *clk) { if (!clk) |