diff options
author | Tony Lindgren <tony@atomide.com> | 2022-02-04 08:14:47 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-03-11 03:55:59 +0100 |
commit | 2c1593328d7f02fe49de5ad6b42c36296c9d6922 (patch) | |
tree | 084b6cb830f90ef5fdbe4c93576a00adbb21e399 /drivers/clk/ti/clock.h | |
parent | clk: ti: Use clock-output-names for clkctrl (diff) | |
download | linux-2c1593328d7f02fe49de5ad6b42c36296c9d6922.tar.xz linux-2c1593328d7f02fe49de5ad6b42c36296c9d6922.zip |
clk: ti: Add ti_dt_clk_name() helper to use clock-output-names
Let's create the clock alias based on the clock-output-names property if
available. Also the component clock drivers can use ti_dt_clk_name() in
the following patches.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20220204071449.16762-7-tony@atomide.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ti/clock.h')
-rw-r--r-- | drivers/clk/ti/clock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/ti/clock.h b/drivers/clk/ti/clock.h index f1dd62de2bfc..938f34e290ed 100644 --- a/drivers/clk/ti/clock.h +++ b/drivers/clk/ti/clock.h @@ -214,6 +214,7 @@ struct clk *ti_clk_register(struct device *dev, struct clk_hw *hw, const char *con); struct clk *ti_clk_register_omap_hw(struct device *dev, struct clk_hw *hw, const char *con); +const char *ti_dt_clk_name(struct device_node *np); int ti_clk_add_alias(struct device *dev, struct clk *clk, const char *con); void ti_clk_add_aliases(void); |