Paul Kocialkowski f236a2a2eb rtc: hym8563: Return -EINVAL if the time is known to be invalid
The current code returns -EPERM when the voltage loss bit is set.
Since the bit indicates that the time value is not valid, return
-EINVAL instead, which is the appropriate error code for this
situation.

Fixes: dcaf03849352 ("rtc: add hym8563 rtc-driver")
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://lore.kernel.org/r/20191212153111.966923-1-paul.kocialkowski@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2019-12-23 11:18:04 +01:00
..
2019-11-27 09:31:14 +01:00
2019-07-17 10:03:50 -07:00
2019-12-03 13:31:08 -08:00
2019-11-08 16:14:09 +01:00
2019-07-17 10:03:50 -07:00
2019-11-08 16:14:09 +01:00
2019-12-03 13:31:08 -08:00
2019-04-16 18:06:54 +02:00
2019-04-04 10:07:10 +02:00
2019-07-17 10:03:50 -07:00
2019-10-19 22:33:05 +02:00
2019-11-08 16:14:09 +01:00
2019-05-09 14:46:33 -07:00
2019-11-08 16:14:09 +01:00
2019-05-23 17:44:52 +02:00
2019-11-27 09:31:13 +01:00
2019-05-08 22:14:36 +02:00