From: Padmavathi Venna <[email protected]> 

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]>
Signed-off-by: Padmavathi Venna <[email protected]>
Signed-off-by: Rajeshwari Shinde <[email protected]>
---
 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 457bcb0..34c9918 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, ...);
 
-- 
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to