162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifdef CONFIG_RTC_INTF_DEV 362306a36Sopenharmony_ci 462306a36Sopenharmony_ciextern void __init rtc_dev_init(void); 562306a36Sopenharmony_ciextern void rtc_dev_prepare(struct rtc_device *rtc); 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#else 862306a36Sopenharmony_ci 962306a36Sopenharmony_cistatic inline void rtc_dev_init(void) 1062306a36Sopenharmony_ci{ 1162306a36Sopenharmony_ci} 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_cistatic inline void rtc_dev_prepare(struct rtc_device *rtc) 1462306a36Sopenharmony_ci{ 1562306a36Sopenharmony_ci} 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#endif 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#ifdef CONFIG_RTC_INTF_PROC 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ciextern void rtc_proc_add_device(struct rtc_device *rtc); 2262306a36Sopenharmony_ciextern void rtc_proc_del_device(struct rtc_device *rtc); 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci#else 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_cistatic inline void rtc_proc_add_device(struct rtc_device *rtc) 2762306a36Sopenharmony_ci{ 2862306a36Sopenharmony_ci} 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_cistatic inline void rtc_proc_del_device(struct rtc_device *rtc) 3162306a36Sopenharmony_ci{ 3262306a36Sopenharmony_ci} 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#endif 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci#ifdef CONFIG_RTC_INTF_SYSFS 3762306a36Sopenharmony_ciconst struct attribute_group **rtc_get_dev_attribute_groups(void); 3862306a36Sopenharmony_ci#else 3962306a36Sopenharmony_cistatic inline const struct attribute_group **rtc_get_dev_attribute_groups(void) 4062306a36Sopenharmony_ci{ 4162306a36Sopenharmony_ci return NULL; 4262306a36Sopenharmony_ci} 4362306a36Sopenharmony_ci#endif 44