diff options
author | Marijn Suijten <marijn.suijten@somainline.org> | 2022-06-30 00:53:23 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-07-29 16:44:08 -0700 |
commit | 6ebd5247ad2aa210b3ff4481c6ed8aa32a032b12 (patch) | |
tree | 64177971adf74520a8733c2cccf6e30288264405 /include/linux/clk-provider.h | |
parent | df63af17f3375239e0be124844f304b4a4b60665 (diff) | |
download | linux-stable-6ebd5247ad2aa210b3ff4481c6ed8aa32a032b12.tar.gz linux-stable-6ebd5247ad2aa210b3ff4481c6ed8aa32a032b12.tar.bz2 linux-stable-6ebd5247ad2aa210b3ff4481c6ed8aa32a032b12.zip |
clk: fixed-factor: Introduce *clk_hw_register_fixed_factor_parent_hw()
Add the devres and non-devres variant of
clk_hw_register_fixed_factor_parent_hw() for registering a fixed factor
clock with clk_hw parent pointer instead of parent name.
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Link: https://lore.kernel.org/r/20220629225331.357308-4-marijn.suijten@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r-- | include/linux/clk-provider.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 316c7e082934..94458cb669f0 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -1032,6 +1032,14 @@ struct clk_hw *devm_clk_hw_register_fixed_factor(struct device *dev, struct clk_hw *devm_clk_hw_register_fixed_factor_index(struct device *dev, const char *name, unsigned int index, unsigned long flags, unsigned int mult, unsigned int div); + +struct clk_hw *devm_clk_hw_register_fixed_factor_parent_hw(struct device *dev, + const char *name, const struct clk_hw *parent_hw, + unsigned long flags, unsigned int mult, unsigned int div); + +struct clk_hw *clk_hw_register_fixed_factor_parent_hw(struct device *dev, + const char *name, const struct clk_hw *parent_hw, + unsigned long flags, unsigned int mult, unsigned int div); /** * struct clk_fractional_divider - adjustable fractional divider clock * |