summaryrefslogtreecommitdiff
path: root/drivers/clk/clk.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@kernel.org>2019-04-12 21:31:48 +0300
committerStephen Boyd <sboyd@kernel.org>2019-04-20 00:53:00 +0300
commitdde4eff47c82c52a72af333d9e55370eee6d95d6 (patch)
tree04a196fc1c5f28c1c8808060a6d730d6386d40d5 /drivers/clk/clk.h
parentfc0c209c147f35ed2648adda09db39fcad89e334 (diff)
downloadlinux-dde4eff47c82c52a72af333d9e55370eee6d95d6.tar.xz
clk: Look for parents with clkdev based clk_lookups
In addition to looking for DT based parents, support clkdev based clk_lookups. This should allow non-DT based clk drivers to participate in the parent lookup process. Cc: Miquel Raynal <miquel.raynal@bootlin.com> Cc: Jerome Brunet <jbrunet@baylibre.com> Cc: Russell King <linux@armlinux.org.uk> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Jeffrey Hugo <jhugo@codeaurora.org> Cc: Chen-Yu Tsai <wens@csie.org> Tested-by: Jeffrey Hugo <jhugo@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk.h')
-rw-r--r--drivers/clk/clk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/clk.h b/drivers/clk/clk.h
index 553f531cc232..d8400d623b34 100644
--- a/drivers/clk/clk.h
+++ b/drivers/clk/clk.h
@@ -19,6 +19,8 @@ static inline struct clk_hw *of_clk_get_hw(struct device_node *np,
}
#endif
+struct clk_hw *clk_find_hw(const char *dev_id, const char *con_id);
+
#ifdef CONFIG_COMMON_CLK
struct clk *clk_hw_create_clk(struct device *dev, struct clk_hw *hw,
const char *dev_id, const char *con_id);