[U-Boot] [PATCH v3 02/16] rtc.h: add struct udevice declaration
AKASHI Takahiro
takahiro.akashi at linaro.org
Wed Nov 13 00:44:48 UTC 2019
Without this change, including rtc.h solely will cause a build error.
Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
include/rtc.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/rtc.h b/include/rtc.h
index 7386d52db1d7..8aabfc1162a4 100644
--- a/include/rtc.h
+++ b/include/rtc.h
@@ -18,6 +18,8 @@
#ifdef CONFIG_DM_RTC
+struct udevice;
+
struct rtc_ops {
/**
* get() - get the current time
--
2.21.0
More information about the U-Boot
mailing list