summaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-02-06 23:54:45 -0800
committerStephen Boyd <sboyd@codeaurora.org>2016-04-19 16:55:01 -0700
commite270d8cb13763f58107198e879cf396511ba2867 (patch)
treeb47412142786851dd9c3d348982e6cf1755baffd /include/linux/clk-provider.h
parenteb7d264f3bf9ca7c093efb77bdde557c6c6e826f (diff)
downloadtalos-obmc-linux-e270d8cb13763f58107198e879cf396511ba2867.tar.gz
talos-obmc-linux-e270d8cb13763f58107198e879cf396511ba2867.zip
clk: gate: Add hw based registration APIs
Add registration APIs in the clk gate code to return struct clk_hw pointers instead of struct clk pointers. This way we hide the struct clk pointer from providers unless they need to use consumer facing APIs. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 8885d0350596..bf12050aadd5 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -326,7 +326,12 @@ struct clk *clk_register_gate(struct device *dev, const char *name,
const char *parent_name, unsigned long flags,
void __iomem *reg, u8 bit_idx,
u8 clk_gate_flags, spinlock_t *lock);
+struct clk_hw *clk_hw_register_gate(struct device *dev, const char *name,
+ const char *parent_name, unsigned long flags,
+ void __iomem *reg, u8 bit_idx,
+ u8 clk_gate_flags, spinlock_t *lock);
void clk_unregister_gate(struct clk *clk);
+void clk_hw_unregister_gate(struct clk_hw *hw);
struct clk_div_table {
unsigned int val;
OpenPOWER on IntegriCloud