diff mbox series

[1/3] rtc: Use time64_t to save range_max of RTC

Message ID f64a09a864c00955eb994a0c03c503795adb0eee.1515390560.git.baolin.wang@linaro.org
State Superseded
Headers show
Series [1/3] rtc: Use time64_t to save range_max of RTC | expand

Commit Message

(Exiting) Baolin Wang Jan. 8, 2018, 6:04 a.m. UTC
We need use rtc->range_max to valid if the time values are valid,
and the time values are saved by time64_t type. So change the
rtc->range_max to time64_t type for comparison correctly.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

---
 include/linux/rtc.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.7.9.5
diff mbox series

Patch

diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index 69e358c..4ac60af 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -153,7 +153,7 @@  struct rtc_device {
 	struct bin_attribute *nvram;
 
 	time64_t range_min;
-	timeu64_t range_max;
+	time64_t range_max;
 
 #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL
 	struct work_struct uie_task;