提交 196a57c2 编写于 作者: P Padmavathi Venna 提交者: Russell King

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: NRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: NKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: NPadmavathi Venna <padma.v@samsung.com>
Signed-off-by: NRajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 7ff6bcf0
...@@ -24,6 +24,13 @@ struct clk_lookup { ...@@ -24,6 +24,13 @@ struct clk_lookup {
struct clk *clk; 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, struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id,
const char *dev_fmt, ...); const char *dev_fmt, ...);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册