rtc: rv8803: return meaningful value for RTC_VL_READ
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Dec 2019 22:02:57 +0000 (23:02 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Dec 2019 09:37:42 +0000 (10:37 +0100)
commitbcd17c5082f2feef4b585ae37a471f61f7b0c2f6
tree9f361543651f2a24bd5e5203354333f8cc8edf26
parent7e890a0f0e4d777d8292539a0609d3aeef6e6da4
rtc: rv8803: return meaningful value for RTC_VL_READ

RV8803_FLAG_V1F means the voltage is too low to keep the temperature
compensation running and the accuracy of the RTC is affected.

RV8803_FLAG_V2F means the voltage dropped so low that data is now invalid.

Link: https://lore.kernel.org/r/20191214220259.621996-16-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rv8803.c