Linux 6.13-rc4
[linux.git] / drivers / rtc / rtc-core.h
blob4b10a1b8f370f39be9634d689ee19f748fb7135e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifdef CONFIG_RTC_INTF_DEV
4 extern void __init rtc_dev_init(void);
5 extern void rtc_dev_prepare(struct rtc_device *rtc);
7 #else
9 static inline void rtc_dev_init(void)
13 static inline void rtc_dev_prepare(struct rtc_device *rtc)
17 #endif
19 #ifdef CONFIG_RTC_INTF_PROC
21 extern void rtc_proc_add_device(struct rtc_device *rtc);
22 extern void rtc_proc_del_device(struct rtc_device *rtc);
24 #else
26 static inline void rtc_proc_add_device(struct rtc_device *rtc)
30 static inline void rtc_proc_del_device(struct rtc_device *rtc)
34 #endif
36 #ifdef CONFIG_RTC_INTF_SYSFS
37 const struct attribute_group **rtc_get_dev_attribute_groups(void);
38 #else
39 static inline const struct attribute_group **rtc_get_dev_attribute_groups(void)
41 return NULL;
43 #endif