diff options
Diffstat (limited to 'drivers/rtc/rtc-core.h')
-rw-r--r-- | drivers/rtc/rtc-core.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-core.h b/drivers/rtc/rtc-core.h index 0abf98983e13..ccc17a2e293d 100644 --- a/drivers/rtc/rtc-core.h +++ b/drivers/rtc/rtc-core.h | |||
@@ -40,9 +40,23 @@ static inline void rtc_proc_del_device(struct rtc_device *rtc) | |||
40 | 40 | ||
41 | #ifdef CONFIG_RTC_INTF_SYSFS | 41 | #ifdef CONFIG_RTC_INTF_SYSFS |
42 | const struct attribute_group **rtc_get_dev_attribute_groups(void); | 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); | ||
43 | #else | 45 | #else |
44 | static inline const struct attribute_group **rtc_get_dev_attribute_groups(void) | 46 | static inline const struct attribute_group **rtc_get_dev_attribute_groups(void) |
45 | { | 47 | { |
46 | return NULL; | 48 | return NULL; |
47 | } | 49 | } |
50 | |||
51 | static inline | ||
52 | int rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp) | ||
53 | { | ||
54 | return 0; | ||
55 | } | ||
56 | |||
57 | static inline | ||
58 | int rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps) | ||
59 | { | ||
60 | return 0; | ||
61 | } | ||
48 | #endif | 62 | #endif |