David Brownell | 5726fb2 | 2007-05-08 00:33:27 -0700 | [diff] [blame] | 1 | #ifdef CONFIG_RTC_INTF_DEV |
| 2 | |
| 3 | extern void __init rtc_dev_init(void); |
| 4 | extern void __exit rtc_dev_exit(void); |
David Brownell | cb3a58d | 2007-05-08 00:33:46 -0700 | [diff] [blame] | 5 | extern void rtc_dev_prepare(struct rtc_device *rtc); |
David Brownell | 5726fb2 | 2007-05-08 00:33:27 -0700 | [diff] [blame] | 6 | extern void rtc_dev_add_device(struct rtc_device *rtc); |
| 7 | extern void rtc_dev_del_device(struct rtc_device *rtc); |
| 8 | |
| 9 | #else |
| 10 | |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame] | 11 | static inline void rtc_dev_init(void) |
| 12 | { |
| 13 | } |
| 14 | |
| 15 | static inline void rtc_dev_exit(void) |
| 16 | { |
| 17 | } |
| 18 | |
David Brownell | cb3a58d | 2007-05-08 00:33:46 -0700 | [diff] [blame] | 19 | static inline void rtc_dev_prepare(struct rtc_device *rtc) |
| 20 | { |
| 21 | } |
| 22 | |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame] | 23 | static inline void rtc_dev_add_device(struct rtc_device *rtc) |
| 24 | { |
| 25 | } |
| 26 | |
| 27 | static inline void rtc_dev_del_device(struct rtc_device *rtc) |
| 28 | { |
| 29 | } |
David Brownell | 5726fb2 | 2007-05-08 00:33:27 -0700 | [diff] [blame] | 30 | |
| 31 | #endif |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 32 | |
David Brownell | 7d9f99e | 2007-05-08 00:33:38 -0700 | [diff] [blame] | 33 | #ifdef CONFIG_RTC_INTF_PROC |
| 34 | |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame] | 35 | extern void rtc_proc_add_device(struct rtc_device *rtc); |
| 36 | extern void rtc_proc_del_device(struct rtc_device *rtc); |
David Brownell | 7d9f99e | 2007-05-08 00:33:38 -0700 | [diff] [blame] | 37 | |
| 38 | #else |
| 39 | |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame] | 40 | static inline void rtc_proc_add_device(struct rtc_device *rtc) |
| 41 | { |
| 42 | } |
| 43 | |
| 44 | static inline void rtc_proc_del_device(struct rtc_device *rtc) |
| 45 | { |
| 46 | } |
David Brownell | 7d9f99e | 2007-05-08 00:33:38 -0700 | [diff] [blame] | 47 | |
| 48 | #endif |
| 49 | |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 50 | #ifdef CONFIG_RTC_INTF_SYSFS |
Dmitry Torokhov | 3ee2c40 | 2015-07-23 16:01:08 -0700 | [diff] [blame] | 51 | const struct attribute_group **rtc_get_dev_attribute_groups(void); |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 52 | #else |
Dmitry Torokhov | 3ee2c40 | 2015-07-23 16:01:08 -0700 | [diff] [blame] | 53 | static inline const struct attribute_group **rtc_get_dev_attribute_groups(void) |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame] | 54 | { |
Dmitry Torokhov | 3ee2c40 | 2015-07-23 16:01:08 -0700 | [diff] [blame] | 55 | return NULL; |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame] | 56 | } |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 57 | #endif |