commit | fed51572c81192a9135380e88cfa445361dade5d | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@st.com> | Mon Jul 22 14:50:21 2019 +0200 |
committer | Patrice Chotard <patrice.chotard@st.com> | Tue Aug 27 09:36:56 2019 +0200 |
tree | 3d5304d28553fd0385240b84d3ab7eb7775e5173 | |
parent | 0203050e57f5e0ad6c696cb64cfbc01fd08b67c5 [diff] |
rtc: stm32: manage 2 digit limitation on year STM32 RTC manages only 2 digits for YEAR (Year tens and units in BCD format in RTC_DR register). With this patch, RTC driver assumes that tm->tm_years is between 2000 and 2099; tm->tm_year - 2000 have only 2 digit (0 > and <= 99). Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>