]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/rtc.h
[PATCH] RTC Subsystem: library functions
[linux-2.6-omap-h63xx.git] / include / linux / rtc.h
index b739ac1f7ca03f2371e16f52afe20f0c1adaf062..8454337c70580ffb0916b92e5bf86b0e66f5f56a 100644 (file)
@@ -95,6 +95,11 @@ struct rtc_pll_info {
 
 #include <linux/interrupt.h>
 
+extern int rtc_month_days(unsigned int month, unsigned int year);
+extern int rtc_valid_tm(struct rtc_time *tm);
+extern int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time);
+extern void rtc_time_to_tm(unsigned long time, struct rtc_time *tm);
+
 typedef struct rtc_task {
        void (*func)(void *private_data);
        void *private_data;