commit | 99c5bc37700d38cc0af6f01e45bfb14f80cecab1 | [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 | aad11b152f03bbc21e8e9a3a6de56ea05132d2ce [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>