Skip to contentSkip to conversation

rtc: imx-sc: use rtc_time64_to_tm

PATCH New Alexandre Belloni 1 participant 1 message Mar 3, 2019

Subsystems (2)
lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 rtc: imx-sc: use rtc_time64_to_tm

The imx-sc driver properly sets range_max, use rtc_time64_to_tm() instead of the deprecated rtc_time_to_tm()

---
 drivers/rtc/rtc-imx-sc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-imx-sc.c +1 -1
index 60570a278bb0..19642bfd913a 100644
@@ -41,7 +41,7 @@ static int imx_sc_rtc_read_time(struct device *dev, struct rtc_time *tm)
 		return ret;
 	}
 
-	rtc_time_to_tm(msg.time, tm);
+	rtc_time64_to_tm(msg.time, tm);
 
 	return 0;
 }
Signature · 1 line
2.20.1