Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifdef CONFIG_RTC_INTF_DEV
0003 
0004 extern void __init rtc_dev_init(void);
0005 extern void rtc_dev_prepare(struct rtc_device *rtc);
0006 
0007 #else
0008 
0009 static inline void rtc_dev_init(void)
0010 {
0011 }
0012 
0013 static inline void rtc_dev_prepare(struct rtc_device *rtc)
0014 {
0015 }
0016 
0017 #endif
0018 
0019 #ifdef CONFIG_RTC_INTF_PROC
0020 
0021 extern void rtc_proc_add_device(struct rtc_device *rtc);
0022 extern void rtc_proc_del_device(struct rtc_device *rtc);
0023 
0024 #else
0025 
0026 static inline void rtc_proc_add_device(struct rtc_device *rtc)
0027 {
0028 }
0029 
0030 static inline void rtc_proc_del_device(struct rtc_device *rtc)
0031 {
0032 }
0033 
0034 #endif
0035 
0036 #ifdef CONFIG_RTC_INTF_SYSFS
0037 const struct attribute_group **rtc_get_dev_attribute_groups(void);
0038 #else
0039 static inline const struct attribute_group **rtc_get_dev_attribute_groups(void)
0040 {
0041     return NULL;
0042 }
0043 #endif