summaryrefslogtreecommitdiff
path: root/include/linux/clkdev.h
diff options
context:
space:
mode:
authorPadmavathi Venna <padma.v@samsung.com>2011-10-13 15:56:32 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-10-13 17:36:58 +0400
commit196a57c2749119be4732cc2b2adb8aafcb4fcb14 (patch)
treedcd50c49f862e57207ff62bdf22d3c0d721335aa /include/linux/clkdev.h
parent7ff6bcf048e6a9849ea0b44269fa4c1c72869db2 (diff)
downloadlinux-196a57c2749119be4732cc2b2adb8aafcb4fcb14.tar.xz
ARM: 7131/1: clkdev: Add Common Macro for clk_lookup
Added a standardized macro CLKDEV_INIT which can used across all the platforms to support clkdev Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Padmavathi Venna <padma.v@samsung.com> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/clkdev.h')
-rw-r--r--include/linux/clkdev.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h
index 457bcb0a310a..d9a4fd028c9d 100644
--- a/include/linux/clkdev.h
+++ b/include/linux/clkdev.h
@@ -24,6 +24,13 @@ struct clk_lookup {
struct clk *clk;
};
+#define CLKDEV_INIT(d, n, c) \
+ { \
+ .dev_id = d, \
+ .con_id = n, \
+ .clk = c, \
+ }
+
struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id,
const char *dev_fmt, ...);