rtc: stm32: rework register management to prepare other version of RTC
authorAmelie Delaunay <amelie.delaunay@st.com>
Thu, 17 May 2018 12:04:24 +0000 (14:04 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 22 May 2018 18:10:52 +0000 (20:10 +0200)
commit02b0cc345c2a1b7f1c590796a02d84e49e51ded0
treeb841711c45599a1f935c4a661378f59f7842f627
parent819cbde5218689d33e0405ebe71bed07bc21f28e
rtc: stm32: rework register management to prepare other version of RTC

This patch reworks register/bits management because next version of RTC
uses the same way of working but with different register's offset or bits
moved in new registers.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-stm32.c