drm/msm/dpu: remove RM topology definition
[linux/fpc-iii.git] / drivers / rtc / rtc-core.h
blobccc17a2e293d178985a496fa87e696cac5491fe9
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifdef CONFIG_RTC_INTF_DEV
4 extern void __init rtc_dev_init(void);
5 extern void __exit rtc_dev_exit(void);
6 extern void rtc_dev_prepare(struct rtc_device *rtc);
8 #else
10 static inline void rtc_dev_init(void)
14 static inline void rtc_dev_exit(void)
18 static inline void rtc_dev_prepare(struct rtc_device *rtc)
22 #endif
24 #ifdef CONFIG_RTC_INTF_PROC
26 extern void rtc_proc_add_device(struct rtc_device *rtc);
27 extern void rtc_proc_del_device(struct rtc_device *rtc);
29 #else
31 static inline void rtc_proc_add_device(struct rtc_device *rtc)
35 static inline void rtc_proc_del_device(struct rtc_device *rtc)
39 #endif
41 #ifdef CONFIG_RTC_INTF_SYSFS
42 const struct attribute_group **rtc_get_dev_attribute_groups(void);
43 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp);
44 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps);
45 #else
46 static inline const struct attribute_group **rtc_get_dev_attribute_groups(void)
48 return NULL;
51 static inline
52 int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp)
54 return 0;
57 static inline
58 int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps)
60 return 0;
62 #endif