diff options
author | Padmavathi Venna <padma.v@samsung.com> | 2011-10-13 07:56:32 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-10-13 09:36:58 -0400 |
commit | 196a57c2749119be4732cc2b2adb8aafcb4fcb14 (patch) | |
tree | dcd50c49f862e57207ff62bdf22d3c0d721335aa | |
parent | 7ff6bcf048e6a9849ea0b44269fa4c1c72869db2 (diff) |
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>
-rw-r--r-- | include/linux/clkdev.h | 7 |
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 { | |||
24 | struct clk *clk; | 24 | struct clk *clk; |
25 | }; | 25 | }; |
26 | 26 | ||
27 | #define CLKDEV_INIT(d, n, c) \ | ||
28 | { \ | ||
29 | .dev_id = d, \ | ||
30 | .con_id = n, \ | ||
31 | .clk = c, \ | ||
32 | } | ||
33 | |||
27 | struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id, | 34 | struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id, |
28 | const char *dev_fmt, ...); | 35 | const char *dev_fmt, ...); |
29 | 36 | ||