Thread (9 messages) 9 messages, 3 authors, 2020-03-11

Re: [PATCH v9 4/5] rtc: mt6397: Add support for the MediaTek MT6358 RTC

From: Yingjoe Chen <hidden>
Date: 2020-03-11 03:25:01
Also in: linux-devicetree, linux-mediatek, linux-pm, linux-rtc, lkml

On Tue, 2020-03-10 at 18:10 +0800, Hsin-Hsiung Wang wrote:
From: Ran Bi <redacted>

This add support for the MediaTek MT6358 RTC. Driver using
compatible data to store different RTC_WRTGR address offset.
This replace RTC_WRTGR to RTC_WRTGR_MT6323 in mt6323-poweroff
driver which only needed by armv7 CPU without ATF.

Signed-off-by: Ran Bi <redacted>
Signed-off-by: Hsin-Hsiung Wang <redacted>
---
<...>
quoted hunk ↗ jump to hunk
diff --git a/include/linux/mfd/mt6397/rtc.h b/include/linux/mfd/mt6397/rtc.h
index 7dfb63b..3dc48e8 100644
--- a/include/linux/mfd/mt6397/rtc.h
+++ b/include/linux/mfd/mt6397/rtc.h
<...>
+
+static const struct mtk_rtc_data mt6358_rtc_data = {
+	.wrtgr = RTC_WRTGR_MT6358,
+};
+
+static const struct mtk_rtc_data mt6397_rtc_data = {
+	.wrtgr = RTC_WRTGR_MT6397,
 };
Hi,

mt6323-poweroff.c doesn't need these _rtc_data. Please put them in
rtc-mt6397.c

Joe.C

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help