rtc: Add API function to return alarm time bound by hardware limit
authorGuenter Roeck <linux@roeck-us.net>
Fri, 15 Sep 2023 15:22:37 +0000 (08:22 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 9 Oct 2023 13:03:28 +0000 (15:03 +0200)
commita0fddaa0b5a587cc8d185f8802fe7e48493c43ed
treefaab420f52fe0713d6b9e7396a4a48b5f510a4fa
parent6c774377359923e4bb46c6f26381edd9189389ed
rtc: Add API function to return alarm time bound by hardware limit

Add rtc_bound_alarmtime() to return the requested alarm timeout bound by
the maxmum alarm timeout that is supported by a given RTC.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230915152238.1144706-2-linux@roeck-us.net
include/linux/rtc.h