diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-12-12 16:31:10 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-12-23 11:18:04 +0100 |
commit | f236a2a2ebabad0848ad0995af7ad1dc7029e895 (patch) | |
tree | 655bcfa9c7ec8355539a5045c4814f27daaed42e /kernel | |
parent | aeedfe7f89bc9b2248bfd509ffcd0c2bcb2614c3 (diff) | |
download | linux-f236a2a2ebabad0848ad0995af7ad1dc7029e895.tar.bz2 |
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions