diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-07 10:54:45 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-04-20 02:55:01 +0300 |
commit | e270d8cb13763f58107198e879cf396511ba2867 (patch) | |
tree | b47412142786851dd9c3d348982e6cf1755baffd /include/linux/clk-provider.h | |
parent | eb7d264f3bf9ca7c093efb77bdde557c6c6e826f (diff) | |
download | linux-e270d8cb13763f58107198e879cf396511ba2867.tar.xz |
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.h | 5 |
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; |