]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/rtc.h
[PATCH] RTC: Add rtc_year_days() to calculate tm_yday
[karo-tx-linux.git] / include / linux / rtc.h
index c12cbc1b83c57a95b17d7efebbd948f6e52ddc53..36e2bf4b43151317fe21141e1ea360fbda8ca83a 100644 (file)
@@ -102,6 +102,7 @@ struct rtc_pll_info {
 #include <linux/interrupt.h>
 
 extern int rtc_month_days(unsigned int month, unsigned int year);
+extern int rtc_year_days(unsigned int day, 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);