summaryrefslogtreecommitdiff
path: root/include/linux/clkdev.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-05-02 12:30:32 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-05-02 12:30:32 +0400
commite9d7f4065408e92338a41b809e437c6e043da090 (patch)
treed89c702ecd99fc606c9d5265278cabb6d3744607 /include/linux/clkdev.h
parent67b508715a61962f9b5b3ef3432e045a9cba4f1e (diff)
downloadlinux-e9d7f4065408e92338a41b809e437c6e043da090.tar.xz
CLKDEV: provide helpers for common clock framework
The common clock framework allocates clocks dynamically. Provide a set of helpers to streamline the clkdev registration of the clock lookups to avoid repetitive code sequences. Reviewed-by: Viresh Kumar <viresh.kumar@st.com> Tested-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/clkdev.h')
-rw-r--r--include/linux/clkdev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h
index d9a4fd028c9d..a6a6f603103b 100644
--- a/include/linux/clkdev.h
+++ b/include/linux/clkdev.h
@@ -40,4 +40,7 @@ void clkdev_drop(struct clk_lookup *cl);
void clkdev_add_table(struct clk_lookup *, size_t);
int clk_add_alias(const char *, const char *, char *, struct device *);
+int clk_register_clkdev(struct clk *, const char *, const char *, ...);
+int clk_register_clkdevs(struct clk *, struct clk_lookup *, size_t);
+
#endif