Skip to content
Commit f236a2a2 authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Alexandre Belloni
Browse files

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: dcaf0384 ("rtc: add hym8563 rtc-driver")
Signed-off-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://lore.kernel.org/r/20191212153111.966923-1-paul.kocialkowski@bootlin.com


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent aeedfe7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment