diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-31 08:21:03 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-06-01 00:27:12 +0300 |
commit | 3c1889e6399a0455bb5056f614be046a0b9cf053 (patch) | |
tree | cd88f4dd22a1bbfbaf64f5b1dfb844fe70e1fa8d /drivers/rtc | |
parent | a248bc805536337317a5cb9777f420c38724dab4 (diff) | |
download | u-boot-3c1889e6399a0455bb5056f614be046a0b9cf053.tar.xz |
rtc: export rtc_month_days()
Export function rtc_month_days() for reuse in the UEFI subsystem.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-lib.c b/drivers/rtc/rtc-lib.c index 6528ddfebb..1f7bdade29 100644 --- a/drivers/rtc/rtc-lib.c +++ b/drivers/rtc/rtc-lib.c @@ -23,7 +23,7 @@ static const unsigned char rtc_days_in_month[] = { /* * The number of days in the month. */ -static int rtc_month_days(unsigned int month, unsigned int year) +int rtc_month_days(unsigned int month, unsigned int year) { return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); } |