OSDN Git Service

rtc: stk17ta8: let the core handle invalid time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 18 Feb 2018 22:36:18 +0000 (23:36 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:40 +0000 (10:49 +0100)
commitbd7f4e7598921506c2ae343954fdbb764840921b
tree5c753e608d1aa8a16cf687de095994190f19adc9
parentbff11e3aa9ccfce1a66ef05871d01c1da533f896
rtc: stk17ta8: let the core handle invalid time

Returning a valid time when the time is invalid is a bad practice, because
then userspace is not able to react on the information. Also, it doesn't
make sense to return epoch because it is already the default time.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-stk17ta8.c