rtc.h: add struct udevice declaration
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 13 Nov 2019 00:44:48 +0000 (09:44 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 6 Dec 2019 21:44:19 +0000 (16:44 -0500)
Without this change, including rtc.h solely will cause a build error.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
include/rtc.h

index 7386d52db1d70d5a133beb2977898e0e172ebb4a..8aabfc1162a47a304efa53993cbffbd8a91ad0f0 100644 (file)
@@ -18,6 +18,8 @@
 
 #ifdef CONFIG_DM_RTC
 
+struct udevice;
+
 struct rtc_ops {
        /**
         * get() - get the current time