diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-07 02:26:37 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-04-19 19:55:01 -0400 |
commit | eb7d264f3bf9ca7c093efb77bdde557c6c6e826f (patch) | |
tree | fbb4b5d78d012a2959a481cb738a329f3b4418d9 /include/linux/clk-provider.h | |
parent | e4f1b49bda6d6aa2e13730ff7eeccbe65a6271f1 (diff) |
clk: divider: Add hw based registration APIs
Add registration APIs in the clk divider 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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index bf8c8bb8c2cb..8885d0350596 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h | |||
@@ -407,12 +407,22 @@ struct clk *clk_register_divider(struct device *dev, const char *name, | |||
407 | const char *parent_name, unsigned long flags, | 407 | const char *parent_name, unsigned long flags, |
408 | void __iomem *reg, u8 shift, u8 width, | 408 | void __iomem *reg, u8 shift, u8 width, |
409 | u8 clk_divider_flags, spinlock_t *lock); | 409 | u8 clk_divider_flags, spinlock_t *lock); |
410 | struct clk_hw *clk_hw_register_divider(struct device *dev, const char *name, | ||
411 | const char *parent_name, unsigned long flags, | ||
412 | void __iomem *reg, u8 shift, u8 width, | ||
413 | u8 clk_divider_flags, spinlock_t *lock); | ||
410 | struct clk *clk_register_divider_table(struct device *dev, const char *name, | 414 | struct clk *clk_register_divider_table(struct device *dev, const char *name, |
411 | const char *parent_name, unsigned long flags, | 415 | const char *parent_name, unsigned long flags, |
412 | void __iomem *reg, u8 shift, u8 width, | 416 | void __iomem *reg, u8 shift, u8 width, |
413 | u8 clk_divider_flags, const struct clk_div_table *table, | 417 | u8 clk_divider_flags, const struct clk_div_table *table, |
414 | spinlock_t *lock); | 418 | spinlock_t *lock); |
419 | struct clk_hw *clk_hw_register_divider_table(struct device *dev, | ||
420 | const char *name, const char *parent_name, unsigned long flags, | ||
421 | void __iomem *reg, u8 shift, u8 width, | ||
422 | u8 clk_divider_flags, const struct clk_div_table *table, | ||
423 | spinlock_t *lock); | ||
415 | void clk_unregister_divider(struct clk *clk); | 424 | void clk_unregister_divider(struct clk *clk); |
425 | void clk_hw_unregister_divider(struct clk_hw *hw); | ||
416 | 426 | ||
417 | /** | 427 | /** |
418 | * struct clk_mux - multiplexer clock | 428 | * struct clk_mux - multiplexer clock |