summaryrefslogtreecommitdiff
path: root/include/uapi/linux/rtc.h
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2021-10-18 18:19:29 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-10-18 18:20:50 +0300
commit2268551935dbf1abcbb4d4fb7b1ad74dbe0d1be0 (patch)
treef387d01196b4cf597ffd89c930725a4c46bd652d /include/uapi/linux/rtc.h
parent6a8af1b6568ad9ee08a419fb12c793f7992cf8a4 (diff)
downloadlinux-2268551935dbf1abcbb4d4fb7b1ad74dbe0d1be0.tar.xz
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
Diffstat (limited to 'include/uapi/linux/rtc.h')
-rw-r--r--include/uapi/linux/rtc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h
index 3241f9ecc639..c83bb9a4fa4f 100644
--- a/include/uapi/linux/rtc.h
+++ b/include/uapi/linux/rtc.h
@@ -131,7 +131,8 @@ struct rtc_param {
#define RTC_FEATURE_NEED_WEEK_DAY 2
#define RTC_FEATURE_ALARM_RES_2S 3
#define RTC_FEATURE_UPDATE_INTERRUPT 4
-#define RTC_FEATURE_CNT 5
+#define RTC_FEATURE_CORRECTION 5
+#define RTC_FEATURE_CNT 6
/* parameter list */
#define RTC_PARAM_FEATURES 0