hwmon: (adt7475) fan stall prevention
[linux/fpc-iii.git] / drivers / rtc / rtc-core.h
blob7a4ed2f7c7d7dfcd531654d355d8ef4c23b082c5
1 #ifdef CONFIG_RTC_INTF_DEV
3 extern void __init rtc_dev_init(void);
4 extern void __exit rtc_dev_exit(void);
5 extern void rtc_dev_prepare(struct rtc_device *rtc);
7 #else
9 static inline void rtc_dev_init(void)
13 static inline void rtc_dev_exit(void)
17 static inline void rtc_dev_prepare(struct rtc_device *rtc)
21 #endif
23 #ifdef CONFIG_RTC_INTF_PROC
25 extern void rtc_proc_add_device(struct rtc_device *rtc);
26 extern void rtc_proc_del_device(struct rtc_device *rtc);
28 #else
30 static inline void rtc_proc_add_device(struct rtc_device *rtc)
34 static inline void rtc_proc_del_device(struct rtc_device *rtc)
38 #endif
40 #ifdef CONFIG_RTC_INTF_SYSFS
41 const struct attribute_group **rtc_get_dev_attribute_groups(void);
42 #else
43 static inline const struct attribute_group **rtc_get_dev_attribute_groups(void)
45 return NULL;
47 #endif