1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 25726fb20SDavid Brownell #ifdef CONFIG_RTC_INTF_DEV 35726fb20SDavid Brownell 45726fb20SDavid Brownell extern void __init rtc_dev_init(void); 5cb3a58d2SDavid Brownell extern void rtc_dev_prepare(struct rtc_device *rtc); 65726fb20SDavid Brownell 75726fb20SDavid Brownell #else 85726fb20SDavid Brownell rtc_dev_init(void)961a7c36aSDavid Brownellstatic inline void rtc_dev_init(void) 1061a7c36aSDavid Brownell { 1161a7c36aSDavid Brownell } 1261a7c36aSDavid Brownell rtc_dev_prepare(struct rtc_device * rtc)13cb3a58d2SDavid Brownellstatic inline void rtc_dev_prepare(struct rtc_device *rtc) 14cb3a58d2SDavid Brownell { 15cb3a58d2SDavid Brownell } 16cb3a58d2SDavid Brownell 175726fb20SDavid Brownell #endif 18446ecbd9SDavid Brownell 197d9f99ecSDavid Brownell #ifdef CONFIG_RTC_INTF_PROC 207d9f99ecSDavid Brownell 2161a7c36aSDavid Brownell extern void rtc_proc_add_device(struct rtc_device *rtc); 2261a7c36aSDavid Brownell extern void rtc_proc_del_device(struct rtc_device *rtc); 237d9f99ecSDavid Brownell 247d9f99ecSDavid Brownell #else 257d9f99ecSDavid Brownell rtc_proc_add_device(struct rtc_device * rtc)2661a7c36aSDavid Brownellstatic inline void rtc_proc_add_device(struct rtc_device *rtc) 2761a7c36aSDavid Brownell { 2861a7c36aSDavid Brownell } 2961a7c36aSDavid Brownell rtc_proc_del_device(struct rtc_device * rtc)3061a7c36aSDavid Brownellstatic inline void rtc_proc_del_device(struct rtc_device *rtc) 3161a7c36aSDavid Brownell { 3261a7c36aSDavid Brownell } 337d9f99ecSDavid Brownell 347d9f99ecSDavid Brownell #endif 357d9f99ecSDavid Brownell 36446ecbd9SDavid Brownell #ifdef CONFIG_RTC_INTF_SYSFS 373ee2c40bSDmitry Torokhov const struct attribute_group **rtc_get_dev_attribute_groups(void); 38446ecbd9SDavid Brownell #else rtc_get_dev_attribute_groups(void)393ee2c40bSDmitry Torokhovstatic inline const struct attribute_group **rtc_get_dev_attribute_groups(void) 4061a7c36aSDavid Brownell { 413ee2c40bSDmitry Torokhov return NULL; 4261a7c36aSDavid Brownell } 43446ecbd9SDavid Brownell #endif 44