diff options
author | Joachim Eastwood <manabian@gmail.com> | 2015-10-24 18:55:22 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-10-26 12:36:55 -0700 |
commit | be68bf883170b3e4123fc4ff3745e38fb45a573e (patch) | |
tree | 4c36a606a38716155cd10a6f5d1ad95588dba4f4 /include/linux/clk-provider.h | |
parent | 679c51cffc3b316bd89ecc91ef92603dd6d4fc68 (diff) | |
download | lwn-be68bf883170b3e4123fc4ff3745e38fb45a573e.tar.gz lwn-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 'include/linux/clk-provider.h')
-rw-r--r-- | include/linux/clk-provider.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index ff7284fb37b2..c56988ac63f7 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -654,6 +654,7 @@ unsigned long clk_hw_get_rate(const struct clk_hw *hw); unsigned long __clk_get_flags(struct clk *clk); unsigned long clk_hw_get_flags(const struct clk_hw *hw); bool clk_hw_is_prepared(const struct clk_hw *hw); +bool clk_hw_is_enabled(const struct clk_hw *hw); bool __clk_is_enabled(struct clk *clk); struct clk *__clk_lookup(const char *name); int __clk_mux_determine_rate(struct clk_hw *hw, |