18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifdef CONFIG_RTC_INTF_DEV 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciextern void __init rtc_dev_init(void); 58c2ecf20Sopenharmony_ciextern void __exit rtc_dev_exit(void); 68c2ecf20Sopenharmony_ciextern void rtc_dev_prepare(struct rtc_device *rtc); 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#else 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cistatic inline void rtc_dev_init(void) 118c2ecf20Sopenharmony_ci{ 128c2ecf20Sopenharmony_ci} 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cistatic inline void rtc_dev_exit(void) 158c2ecf20Sopenharmony_ci{ 168c2ecf20Sopenharmony_ci} 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_cistatic inline void rtc_dev_prepare(struct rtc_device *rtc) 198c2ecf20Sopenharmony_ci{ 208c2ecf20Sopenharmony_ci} 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#endif 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#ifdef CONFIG_RTC_INTF_PROC 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciextern void rtc_proc_add_device(struct rtc_device *rtc); 278c2ecf20Sopenharmony_ciextern void rtc_proc_del_device(struct rtc_device *rtc); 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#else 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_cistatic inline void rtc_proc_add_device(struct rtc_device *rtc) 328c2ecf20Sopenharmony_ci{ 338c2ecf20Sopenharmony_ci} 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_cistatic inline void rtc_proc_del_device(struct rtc_device *rtc) 368c2ecf20Sopenharmony_ci{ 378c2ecf20Sopenharmony_ci} 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci#endif 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci#ifdef CONFIG_RTC_INTF_SYSFS 428c2ecf20Sopenharmony_ciconst struct attribute_group **rtc_get_dev_attribute_groups(void); 438c2ecf20Sopenharmony_ci#else 448c2ecf20Sopenharmony_cistatic inline const struct attribute_group **rtc_get_dev_attribute_groups(void) 458c2ecf20Sopenharmony_ci{ 468c2ecf20Sopenharmony_ci return NULL; 478c2ecf20Sopenharmony_ci} 488c2ecf20Sopenharmony_ci#endif 49