]> git.baikalelectronics.ru Git - kernel.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)
commit886bd867c184ea4689942fd9c0ecaed6d30a323f
treecb11bf06cfd73e69a0ed1abb6fd86422e1d317cc
parentcf7a03907634a376178d3395e936e98fd379aef1
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