diff options
| author | Théo Lebrun <theo.lebrun@bootlin.com> | 2024-11-06 19:03:54 +0300 |
|---|---|---|
| committer | Stephen Boyd <sboyd@kernel.org> | 2024-11-15 01:52:26 +0300 |
| commit | 4eb5e9c6c4cdfca9fb0577f62580db46f5acd1a5 (patch) | |
| tree | 60ab2625d7434aa2c530258593cc1d76cf4699f6 /include/linux | |
| parent | 6a46b75a91a4347e50b25fb4a150a8f34b026034 (diff) | |
| download | linux-4eb5e9c6c4cdfca9fb0577f62580db46f5acd1a5.tar.xz | |
clk: fixed-factor: add clk_hw_register_fixed_factor_index() function
Add non-devres version of clk_hw_register_fixed_factor(), with parent
targeted using its index.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20241106-mbly-clk-v2-3-84cfefb3f485@bootlin.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/clk-provider.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index dbe793964c24..52b46c63a2bd 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -1142,6 +1142,9 @@ struct clk_hw *clk_hw_register_fixed_factor_with_accuracy_fwname(struct device * struct device_node *np, const char *name, const char *fw_name, unsigned long flags, unsigned int mult, unsigned int div, unsigned long acc); +struct clk_hw *clk_hw_register_fixed_factor_index(struct device *dev, + const char *name, unsigned int index, unsigned long flags, + unsigned int mult, unsigned int div); void clk_hw_unregister_fixed_factor(struct clk_hw *hw); struct clk_hw *devm_clk_hw_register_fixed_factor(struct device *dev, const char *name, const char *parent_name, unsigned long flags, |
