Root/drivers/rtc/rtc-core.h

1#ifdef CONFIG_RTC_INTF_DEV
2
3extern void __init rtc_dev_init(void);
4extern void __exit rtc_dev_exit(void);
5extern void rtc_dev_prepare(struct rtc_device *rtc);
6extern void rtc_dev_add_device(struct rtc_device *rtc);
7extern void rtc_dev_del_device(struct rtc_device *rtc);
8
9#else
10
11static inline void rtc_dev_init(void)
12{
13}
14
15static inline void rtc_dev_exit(void)
16{
17}
18
19static inline void rtc_dev_prepare(struct rtc_device *rtc)
20{
21}
22
23static inline void rtc_dev_add_device(struct rtc_device *rtc)
24{
25}
26
27static inline void rtc_dev_del_device(struct rtc_device *rtc)
28{
29}
30
31#endif
32
33#ifdef CONFIG_RTC_INTF_PROC
34
35extern void rtc_proc_add_device(struct rtc_device *rtc);
36extern void rtc_proc_del_device(struct rtc_device *rtc);
37
38#else
39
40static inline void rtc_proc_add_device(struct rtc_device *rtc)
41{
42}
43
44static inline void rtc_proc_del_device(struct rtc_device *rtc)
45{
46}
47
48#endif
49
50#ifdef CONFIG_RTC_INTF_SYSFS
51
52extern void __init rtc_sysfs_init(struct class *);
53extern void rtc_sysfs_add_device(struct rtc_device *rtc);
54extern void rtc_sysfs_del_device(struct rtc_device *rtc);
55
56#else
57
58static inline void rtc_sysfs_init(struct class *rtc)
59{
60}
61
62static inline void rtc_sysfs_add_device(struct rtc_device *rtc)
63{
64}
65
66static inline void rtc_sysfs_del_device(struct rtc_device *rtc)
67{
68}
69
70#endif
71

Archive Download this file



interactive