blob: a098aea197fc72dad6b0e1819c2ab739cb7dd042 [file] [log] [blame]
David Brownell5726fb22007-05-08 00:33:27 -07001#ifdef CONFIG_RTC_INTF_DEV
2
3extern void __init rtc_dev_init(void);
4extern void __exit rtc_dev_exit(void);
David Brownellcb3a58d2007-05-08 00:33:46 -07005extern void rtc_dev_prepare(struct rtc_device *rtc);
David Brownell5726fb22007-05-08 00:33:27 -07006extern void rtc_dev_add_device(struct rtc_device *rtc);
7extern void rtc_dev_del_device(struct rtc_device *rtc);
8
9#else
10
David Brownell61a7c362007-05-08 00:33:45 -070011static inline void rtc_dev_init(void)
12{
13}
14
15static inline void rtc_dev_exit(void)
16{
17}
18
David Brownellcb3a58d2007-05-08 00:33:46 -070019static inline void rtc_dev_prepare(struct rtc_device *rtc)
20{
21}
22
David Brownell61a7c362007-05-08 00:33:45 -070023static 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}
David Brownell5726fb22007-05-08 00:33:27 -070030
31#endif
David Brownell446ecbd2007-05-08 00:33:33 -070032
David Brownell7d9f99e2007-05-08 00:33:38 -070033#ifdef CONFIG_RTC_INTF_PROC
34
David Brownell61a7c362007-05-08 00:33:45 -070035extern void rtc_proc_add_device(struct rtc_device *rtc);
36extern void rtc_proc_del_device(struct rtc_device *rtc);
David Brownell7d9f99e2007-05-08 00:33:38 -070037
38#else
39
David Brownell61a7c362007-05-08 00:33:45 -070040static 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}
David Brownell7d9f99e2007-05-08 00:33:38 -070047
48#endif
49
David Brownell446ecbd2007-05-08 00:33:33 -070050#ifdef CONFIG_RTC_INTF_SYSFS
Dmitry Torokhov3ee2c402015-07-23 16:01:08 -070051const struct attribute_group **rtc_get_dev_attribute_groups(void);
David Brownell446ecbd2007-05-08 00:33:33 -070052#else
Dmitry Torokhov3ee2c402015-07-23 16:01:08 -070053static inline const struct attribute_group **rtc_get_dev_attribute_groups(void)
David Brownell61a7c362007-05-08 00:33:45 -070054{
Dmitry Torokhov3ee2c402015-07-23 16:01:08 -070055 return NULL;
David Brownell61a7c362007-05-08 00:33:45 -070056}
David Brownell446ecbd2007-05-08 00:33:33 -070057#endif