blob: 0abf98983e13f6353e75e7d732d78a361b189dd7 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
David Brownell5726fb22007-05-08 00:33:27 -07002#ifdef CONFIG_RTC_INTF_DEV
3
4extern void __init rtc_dev_init(void);
5extern void __exit rtc_dev_exit(void);
David Brownellcb3a58d2007-05-08 00:33:46 -07006extern void rtc_dev_prepare(struct rtc_device *rtc);
David Brownell5726fb22007-05-08 00:33:27 -07007
8#else
9
David Brownell61a7c362007-05-08 00:33:45 -070010static inline void rtc_dev_init(void)
11{
12}
13
14static inline void rtc_dev_exit(void)
15{
16}
17
David Brownellcb3a58d2007-05-08 00:33:46 -070018static inline void rtc_dev_prepare(struct rtc_device *rtc)
19{
20}
21
David Brownell5726fb22007-05-08 00:33:27 -070022#endif
David Brownell446ecbd2007-05-08 00:33:33 -070023
David Brownell7d9f99e2007-05-08 00:33:38 -070024#ifdef CONFIG_RTC_INTF_PROC
25
David Brownell61a7c362007-05-08 00:33:45 -070026extern void rtc_proc_add_device(struct rtc_device *rtc);
27extern void rtc_proc_del_device(struct rtc_device *rtc);
David Brownell7d9f99e2007-05-08 00:33:38 -070028
29#else
30
David Brownell61a7c362007-05-08 00:33:45 -070031static inline void rtc_proc_add_device(struct rtc_device *rtc)
32{
33}
34
35static inline void rtc_proc_del_device(struct rtc_device *rtc)
36{
37}
David Brownell7d9f99e2007-05-08 00:33:38 -070038
39#endif
40
David Brownell446ecbd2007-05-08 00:33:33 -070041#ifdef CONFIG_RTC_INTF_SYSFS
Dmitry Torokhov3ee2c402015-07-23 16:01:08 -070042const struct attribute_group **rtc_get_dev_attribute_groups(void);
David Brownell446ecbd2007-05-08 00:33:33 -070043#else
Dmitry Torokhov3ee2c402015-07-23 16:01:08 -070044static inline const struct attribute_group **rtc_get_dev_attribute_groups(void)
David Brownell61a7c362007-05-08 00:33:45 -070045{
Dmitry Torokhov3ee2c402015-07-23 16:01:08 -070046 return NULL;
David Brownell61a7c362007-05-08 00:33:45 -070047}
David Brownell446ecbd2007-05-08 00:33:33 -070048#endif