]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: ds1672: move oscillator handling to .read_time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 7 Apr 2019 21:05:35 +0000 (23:05 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Apr 2019 12:35:20 +0000 (14:35 +0200)
commit10e3efc16569a126456c413274b90b00e60454ca
treecb11bf06cfd73e69a0ed1abb6fd86422e1d317cc
parentd1fbe695d889959e2430379cc989cd399fa9e253
rtc: ds1672: move oscillator handling to .read_time

Return -EINVAL when trying to read an invalid time instead of just probe
because this is a useful information for userspace.

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