diff options
Diffstat (limited to 'include/linux/rtc.h')
-rw-r--r-- | include/linux/rtc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 3359f0422c6b..b693adac853b 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h | |||
@@ -89,6 +89,8 @@ struct rtc_class_ops { | |||
89 | int (*set_mmss)(struct device *, unsigned long secs); | 89 | int (*set_mmss)(struct device *, unsigned long secs); |
90 | int (*read_callback)(struct device *, int data); | 90 | int (*read_callback)(struct device *, int data); |
91 | int (*alarm_irq_enable)(struct device *, unsigned int enabled); | 91 | int (*alarm_irq_enable)(struct device *, unsigned int enabled); |
92 | int (*read_offset)(struct device *, long *offset); | ||
93 | int (*set_offset)(struct device *, long offset); | ||
92 | }; | 94 | }; |
93 | 95 | ||
94 | #define RTC_DEVICE_NAME_SIZE 20 | 96 | #define RTC_DEVICE_NAME_SIZE 20 |
@@ -208,6 +210,8 @@ void rtc_timer_init(struct rtc_timer *timer, void (*f)(void *p), void *data); | |||
208 | int rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer, | 210 | int rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer, |
209 | ktime_t expires, ktime_t period); | 211 | ktime_t expires, ktime_t period); |
210 | void rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer); | 212 | void rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer); |
213 | int rtc_read_offset(struct rtc_device *rtc, long *offset); | ||
214 | int rtc_set_offset(struct rtc_device *rtc, long offset); | ||
211 | void rtc_timer_do_work(struct work_struct *work); | 215 | void rtc_timer_do_work(struct work_struct *work); |
212 | 216 | ||
213 | static inline bool is_leap_year(unsigned int year) | 217 | static inline bool is_leap_year(unsigned int year) |