Skip to content
Commit 821f51c4 authored by Andrea Scian's avatar Andrea Scian Committed by Alexandre Belloni
Browse files

rtc: use rtc_valid_tm() error code when reading date/time



There's a wrong comment in some RTC drivers that say it's better to ignore
rtc_valid_tm() when reading RTC timestamp. However this is wrong and is
better to return to the userspace the error if timestamp is not valid.

Signed-off-by: default avatarAndrea Scian <andrea.scian@dave.eu>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 4ab82103
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment