浏览代码

rtc.h: add struct udevice declaration

Without this change, including rtc.h solely will cause a build error.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
AKASHI Takahiro 4 年之前
父节点
当前提交
09030e0361
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/rtc.h

+ 2 - 0
include/rtc.h

@@ -18,6 +18,8 @@
 
 #ifdef CONFIG_DM_RTC
 
+struct udevice;
+
 struct rtc_ops {
 	/**
 	 * get() - get the current time