summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.h
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2014-05-19 19:22:50 +0200
committerMike Turquette <mturquette@linaro.org>2014-05-22 15:54:59 -0700
commit7f05e28f9dd3eb7a3f27c6f50b715995dc7a88c5 (patch)
treeffde9347941f4ee8cfa9112e15bb9a8138bc3be8 /drivers/clk/clk.h
parent222cb1bf180e413e1816aaf4166e4f56e72201d8 (diff)
downloadop-kernel-dev-7f05e28f9dd3eb7a3f27c6f50b715995dc7a88c5.zip
op-kernel-dev-7f05e28f9dd3eb7a3f27c6f50b715995dc7a88c5.tar.gz
clk: Add of_clk_get_by_clkspec() helper
This patch adds of_clk_get_by_clkspec() helper function, which does only a struct clk lookup from the clock providers. It is used in the subsequent patch where parsing of a clock from device tree and the lookup from providers needed to be split. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk.h')
-rw-r--r--drivers/clk/clk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk.h b/drivers/clk/clk.h
index 795cc9f..c798138 100644
--- a/drivers/clk/clk.h
+++ b/drivers/clk/clk.h
@@ -10,6 +10,7 @@
*/
#if defined(CONFIG_OF) && defined(CONFIG_COMMON_CLK)
+struct clk *of_clk_get_by_clkspec(struct of_phandle_args *clkspec);
struct clk *__of_clk_get_from_provider(struct of_phandle_args *clkspec);
void of_clk_lock(void);
void of_clk_unlock(void);
OpenPOWER on IntegriCloud