Hi all, This is a couple of patches for the bq32000 RTC.
The first one is purely cosmetic, fixing a case where the wrong mask (but correct value) was used when reading a register value. The second patch adds a check for a failure flag in the read function. If the register contents can't be trusted, an error is returned instead. The patch also removes some code in the probe function that would clear the failure flag without resolving the error condition. The error is now only cleared when writing a new time to the RTC. Jan Östlund (2): rtc: bq32k: Use correct mask name for 'minutes' register. rtc: bq32k: Fix handling of oscillator failure flag drivers/rtc/rtc-bq32k.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- 2.7.4