[PATCH 33/44] rtc: export rtc_class in header
Ahmad Fatoum
a.fatoum at barebox.org
Mon Aug 11 05:28:13 PDT 2025
This list will be used by the upcoming bfetch command to
determine whether the running barebox has any RTCs registered.
The symbol already has external linkage.
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
include/linux/rtc.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index 4fa999723de1..43c8fb248f86 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -15,6 +15,7 @@
#include <common.h>
#include <linux/types.h>
+#include <linux/list.h>
#include <linux/errno.h>
#include <linux/nvmem-provider.h>
#include <rtc.h>
@@ -40,6 +41,8 @@ struct rtc_class_ops {
int (*set_time)(struct rtc_device *, struct rtc_time *);
};
+extern struct class rtc_class;
+
extern int rtc_register(struct rtc_device *rtcdev);
#ifdef CONFIG_RTC_CLASS
--
2.39.5
More information about the barebox
mailing list