aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/rtc.h')
-rw-r--r--include/linux/rtc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index f89bfbb54902..df666cf29ef1 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -79,8 +79,6 @@ struct rtc_class_ops {
79 int (*read_alarm)(struct device *, struct rtc_wkalrm *); 79 int (*read_alarm)(struct device *, struct rtc_wkalrm *);
80 int (*set_alarm)(struct device *, struct rtc_wkalrm *); 80 int (*set_alarm)(struct device *, struct rtc_wkalrm *);
81 int (*proc)(struct device *, struct seq_file *); 81 int (*proc)(struct device *, struct seq_file *);
82 int (*set_mmss64)(struct device *, time64_t secs);
83 int (*set_mmss)(struct device *, unsigned long secs);
84 int (*alarm_irq_enable)(struct device *, unsigned int enabled); 82 int (*alarm_irq_enable)(struct device *, unsigned int enabled);
85 int (*read_offset)(struct device *, long *offset); 83 int (*read_offset)(struct device *, long *offset);
86 int (*set_offset)(struct device *, long offset); 84 int (*set_offset)(struct device *, long offset);
@@ -162,9 +160,11 @@ struct rtc_device {
162#define to_rtc_device(d) container_of(d, struct rtc_device, dev) 160#define to_rtc_device(d) container_of(d, struct rtc_device, dev)
163 161
164/* useful timestamps */ 162/* useful timestamps */
165#define RTC_TIMESTAMP_BEGIN_1900 -2208989361LL /* 1900-01-01 00:00:00 */ 163#define RTC_TIMESTAMP_BEGIN_1900 -2208988800LL /* 1900-01-01 00:00:00 */
166#define RTC_TIMESTAMP_BEGIN_2000 946684800LL /* 2000-01-01 00:00:00 */ 164#define RTC_TIMESTAMP_BEGIN_2000 946684800LL /* 2000-01-01 00:00:00 */
165#define RTC_TIMESTAMP_END_2063 2966371199LL /* 2063-12-31 23:59:59 */
167#define RTC_TIMESTAMP_END_2099 4102444799LL /* 2099-12-31 23:59:59 */ 166#define RTC_TIMESTAMP_END_2099 4102444799LL /* 2099-12-31 23:59:59 */
167#define RTC_TIMESTAMP_END_9999 253402300799LL /* 9999-12-31 23:59:59 */
168 168
169extern struct rtc_device *devm_rtc_device_register(struct device *dev, 169extern struct rtc_device *devm_rtc_device_register(struct device *dev,
170 const char *name, 170 const char *name,