rtc: pcf8563: return meaningful value for RTC_VL_READ
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Dec 2019 22:02:51 +0000 (23:02 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Dec 2019 09:37:32 +0000 (10:37 +0100)
commitb371b10e949a81693d5f3f327ebb86a81829045b
treeb0c310644b151229e71452029866a51262757d09
parent935272aade5ac17f6e6139968799421233c92c33
rtc: pcf8563: return meaningful value for RTC_VL_READ

PCF8563_SC_LV means the voltage dropped too low and data has been lost.

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