summaryrefslogtreecommitdiffstats
path: root/include/linux/clkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/clkdev.h')
-rw-r--r--include/linux/clkdev.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h
index 457bcb0a310a..d9a4fd028c9d 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, ...);
OpenPOWER on IntegriCloud