rtc: pcf85063: fix time/date reading
authorJuergen Borleis <jbe@pengutronix.de>
Tue, 9 Feb 2016 10:57:26 +0000 (11:57 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:08:17 +0000 (17:08 +0100)
commit6cc4c8b1e3790c63b2e1b6d9b25d2bda6e406572
treeacabf4ff6d12954bb5c4d741cef57d1fd3e83d7a
parent7b5768486a910532885f01b9d2dad4818c8b3be1
rtc: pcf85063: fix time/date reading

Check if the RTC signals an invalid time/date (due to a battery power loss
for example). In this case ignore the time/date until it is really set again.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pcf85063.c