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>
This commit is contained in:
parent
7ff6bcf048
commit
196a57c274
1 changed files with 7 additions and 0 deletions
|
@ -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, ...);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue