Linux RTC
 help / color / mirror / Atom feed
* [RESEND PATCH 1/3] rtc: Use time64_t to save range_max of RTC
@ 2018-02-26  8:33 Baolin Wang
  2018-02-26  8:33 ` [RESEND PATCH 2/3] rtc: Factor out the RTC range validation into rtc_valid_range() Baolin Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Baolin Wang @ 2018-02-26  8:33 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni
  Cc: arnd, broonie, linux-rtc, linux-kernel, baolin.wang,
	alexandre.belloni

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(-)

diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index bdfc0c4..8560282 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -152,7 +152,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;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-08  2:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-26  8:33 [RESEND PATCH 1/3] rtc: Use time64_t to save range_max of RTC Baolin Wang
2018-02-26  8:33 ` [RESEND PATCH 2/3] rtc: Factor out the RTC range validation into rtc_valid_range() Baolin Wang
2018-02-26  8:33 ` [RESEND PATCH 3/3] rtc: Add one offset seconds to expand RTC range Baolin Wang
2018-03-07 22:54 ` [RESEND PATCH 1/3] rtc: Use time64_t to save range_max of RTC Alexandre Belloni
2018-03-08  2:47   ` Baolin Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox