Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Padmavathi Venna and committed by
Russell King
196a57c2 7ff6bcf0

+7
+7
include/linux/clkdev.h
··· 24 24 struct clk *clk; 25 25 }; 26 26 27 + #define CLKDEV_INIT(d, n, c) \ 28 + { \ 29 + .dev_id = d, \ 30 + .con_id = n, \ 31 + .clk = c, \ 32 + } 33 + 27 34 struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id, 28 35 const char *dev_fmt, ...); 29 36