Skip to content

Commit

Permalink
ARM: 7131/1: clkdev: Add Common Macro for clk_lookup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Padmavathi Venna authored and Russell King committed Oct 13, 2011
1 parent 7ff6bcf commit 196a57c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/clkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...);

Expand Down

0 comments on commit 196a57c

Please sign in to comment.