]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: expose correction feature
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Oct 2021 15:19:29 +0000 (17:19 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Oct 2021 15:20:50 +0000 (17:20 +0200)
commitbb8eb1f3c89ac7e7fdb0677411fb30d5d497c3fd
treef387d01196b4cf597ffd89c930725a4c46bd652d
parent2216e83bfa447e35b393ef5be35927b15968482d
rtc: expose correction feature

Add a new feature for RTCs able to correct the oscillator imprecision. This
is also called offset or trimming. Such drivers have a .set_offset callback,
use that to set the feature bit from the core.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211018151933.76865-4-alexandre.belloni@bootlin.com
drivers/rtc/class.c
include/uapi/linux/rtc.h