From 3c1889e6399a0455bb5056f614be046a0b9cf053 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Fri, 31 May 2019 07:21:03 +0200 Subject: rtc: export rtc_month_days() Export function rtc_month_days() for reuse in the UEFI subsystem. Signed-off-by: Heinrich Schuchardt --- include/rtc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/rtc.h') diff --git a/include/rtc.h b/include/rtc.h index 2c3a5743e30..b255bdc7a33 100644 --- a/include/rtc.h +++ b/include/rtc.h @@ -258,4 +258,12 @@ void rtc_to_tm(u64 time_t, struct rtc_time *time); */ unsigned long rtc_mktime(const struct rtc_time *time); +/** + * rtc_month_days() - The number of days in the month + * + * @month: month (January = 0) + * @year: year (4 digits) + */ +int rtc_month_days(unsigned int month, unsigned int year); + #endif /* _RTC_H_ */ -- cgit v1.2.3