rtc: pcf8563: stop caching voltage_low
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Dec 2019 22:02:50 +0000 (23:02 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Dec 2019 09:37:30 +0000 (10:37 +0100)
commit935272aade5ac17f6e6139968799421233c92c33
tree200a2ccc9ebfc88e98dfa5c4f01b04db3e755dad
parent75d26f5c2388f0fbedceeec98a3dc95cb26ec1c8
rtc: pcf8563: stop caching voltage_low

voltage_low is only updated when reading the time, this means that using
RTC_VL_READ will miss the VL flag if the time has not been read before
using the ioctl. Always read the status from the hardware.

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