xref: /linux/drivers/rtc/rtc-core.h (revision 61a7c36acb3da406d64c0da6288eab1c414a65ea)
15726fb20SDavid Brownell #ifdef CONFIG_RTC_INTF_DEV
25726fb20SDavid Brownell 
35726fb20SDavid Brownell extern void __init rtc_dev_init(void);
45726fb20SDavid Brownell extern void __exit rtc_dev_exit(void);
55726fb20SDavid Brownell extern void rtc_dev_add_device(struct rtc_device *rtc);
65726fb20SDavid Brownell extern void rtc_dev_del_device(struct rtc_device *rtc);
75726fb20SDavid Brownell 
85726fb20SDavid Brownell #else
95726fb20SDavid Brownell 
10*61a7c36aSDavid Brownell static inline void rtc_dev_init(void)
11*61a7c36aSDavid Brownell {
12*61a7c36aSDavid Brownell }
13*61a7c36aSDavid Brownell 
14*61a7c36aSDavid Brownell static inline void rtc_dev_exit(void)
15*61a7c36aSDavid Brownell {
16*61a7c36aSDavid Brownell }
17*61a7c36aSDavid Brownell 
18*61a7c36aSDavid Brownell static inline void rtc_dev_add_device(struct rtc_device *rtc)
19*61a7c36aSDavid Brownell {
20*61a7c36aSDavid Brownell }
21*61a7c36aSDavid Brownell 
22*61a7c36aSDavid Brownell static inline void rtc_dev_del_device(struct rtc_device *rtc)
23*61a7c36aSDavid Brownell {
24*61a7c36aSDavid Brownell }
255726fb20SDavid Brownell 
265726fb20SDavid Brownell #endif
27446ecbd9SDavid Brownell 
287d9f99ecSDavid Brownell #ifdef CONFIG_RTC_INTF_PROC
297d9f99ecSDavid Brownell 
30*61a7c36aSDavid Brownell extern void rtc_proc_add_device(struct rtc_device *rtc);
31*61a7c36aSDavid Brownell extern void rtc_proc_del_device(struct rtc_device *rtc);
327d9f99ecSDavid Brownell 
337d9f99ecSDavid Brownell #else
347d9f99ecSDavid Brownell 
35*61a7c36aSDavid Brownell static inline void rtc_proc_add_device(struct rtc_device *rtc)
36*61a7c36aSDavid Brownell {
37*61a7c36aSDavid Brownell }
38*61a7c36aSDavid Brownell 
39*61a7c36aSDavid Brownell static inline void rtc_proc_del_device(struct rtc_device *rtc)
40*61a7c36aSDavid Brownell {
41*61a7c36aSDavid Brownell }
427d9f99ecSDavid Brownell 
437d9f99ecSDavid Brownell #endif
447d9f99ecSDavid Brownell 
45446ecbd9SDavid Brownell #ifdef CONFIG_RTC_INTF_SYSFS
46446ecbd9SDavid Brownell 
47446ecbd9SDavid Brownell extern void __init rtc_sysfs_init(struct class *);
48446ecbd9SDavid Brownell extern void rtc_sysfs_add_device(struct rtc_device *rtc);
49446ecbd9SDavid Brownell extern void rtc_sysfs_del_device(struct rtc_device *rtc);
50446ecbd9SDavid Brownell 
51446ecbd9SDavid Brownell #else
52446ecbd9SDavid Brownell 
53*61a7c36aSDavid Brownell static inline void rtc_sysfs_init(struct class *rtc)
54*61a7c36aSDavid Brownell {
55*61a7c36aSDavid Brownell }
56*61a7c36aSDavid Brownell 
57*61a7c36aSDavid Brownell static inline void rtc_sysfs_add_device(struct rtc_device *rtc)
58*61a7c36aSDavid Brownell {
59*61a7c36aSDavid Brownell }
60*61a7c36aSDavid Brownell 
61*61a7c36aSDavid Brownell static inline void rtc_sysfs_del_device(struct rtc_device *rtc)
62*61a7c36aSDavid Brownell {
63*61a7c36aSDavid Brownell }
64446ecbd9SDavid Brownell 
65446ecbd9SDavid Brownell #endif
66