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)
commit2268551935dbf1abcbb4d4fb7b1ad74dbe0d1be0
treef387d01196b4cf597ffd89c930725a4c46bd652d
parent6a8af1b6568ad9ee08a419fb12c793f7992cf8a4
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