]> Git Repo - linux.git/commitdiff
ARM: 7131/1: clkdev: Add Common Macro for clk_lookup
authorPadmavathi Venna <[email protected]>
Thu, 13 Oct 2011 11:56:32 +0000 (12:56 +0100)
committerRussell King <[email protected]>
Thu, 13 Oct 2011 13:36:58 +0000 (14:36 +0100)
Added a standardized macro CLKDEV_INIT which can used across all
the platforms to support clkdev

Suggested-by: Russell King <[email protected]>
Acked-by: H Hartley Sweeten <[email protected]>
Acked-by: Kukjin Kim <[email protected]>
Signed-off-by: Padmavathi Venna <[email protected]>
Signed-off-by: Rajeshwari Shinde <[email protected]>
Signed-off-by: Russell King <[email protected]>
include/linux/clkdev.h

index 457bcb0a310a4605ccd7dcdb43397fb24ae78347..d9a4fd028c9dc0c019f1fe1df48b8c7782c90d32 100644 (file)
@@ -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, ...);
 
This page took 0.059738 seconds and 4 git commands to generate.