clk: Add clk_hw_is_enabled() for use by clk providers
authorJoachim Eastwood <manabian@gmail.com>
Sat, 24 Oct 2015 16:55:22 +0000 (18:55 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 26 Oct 2015 19:36:55 +0000 (12:36 -0700)
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>
drivers/clk/clk.c
include/linux/clk-provider.h

index 2eae76f21d6f9215e281247f42426f927892cb66..f13c3f4228d4d51d5649c3705fd565b4aac82913 100644 (file)
@@ -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)
index ff7284fb37b212199d198cf9217ae3fd8b5dba60..c56988ac63f7801d5a93b004b80c20f7089bf2e3 100644 (file)
@@ -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,
This page took 0.02684 seconds and 5 git commands to generate.