[PATCH 09/18] CLK: Add helper defines to barebox-wrapper.h for easier porting of drivers from Linux kernel.
Andrey Panov
rockford at yandex.ru
Mon Mar 2 12:21:53 PST 2015
Signed-off-by: Andrey Panov <rockford at yandex.ru>
---
include/linux/barebox-wrapper.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h
index d34d1d1..cbc8934 100644
--- a/include/linux/barebox-wrapper.h
+++ b/include/linux/barebox-wrapper.h
@@ -73,4 +73,10 @@ typedef int irqreturn_t;
#define IRQ_NONE 0
#define IRQ_HANDLED 0
+/* To ease clk drivers porting from Linux kernel */
+#define __clk_get_name(clk) clk->name
+#define __clk_lookup clk_lookup
+#define __clk_get_rate clk_get_rate
+#define __clk_get_parent clk_get_parent
+
#endif /* __INCLUDE_LINUX_BAREBOX_WRAPPER_H */
--
2.1.4
More information about the barebox
mailing list