rtc: rv8803: fix writing back ctrl in flag register
authorDominique Martinet <dominique.martinet@atmark-techno.com>
Mon, 1 Nov 2021 01:33:59 +0000 (10:33 +0900)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 9 Nov 2021 23:44:08 +0000 (00:44 +0100)
commit03a86cda4123084c7969387e7e0b69f23c2f8acf
treee5416ffa4b0704c73796ea14ba778106b3e651a6
parenta5feda3b361e11b291786d5c4ff86d4b9a55498f
rtc: rv8803: fix writing back ctrl in flag register

ctrl is set from read_regs(..FLAG, 2, ctrl), so ctrl[0] is FLAG
and ctrl[1] is the CTRL register.
Use ctrl[0] to write back to the FLAG register as appropriate.

Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211101013400.325855-1-dominique.martinet@atmark-techno.com
drivers/rtc/rtc-rv8803.c