Skip to contentSkip to conversation

rtc: msc313: Select by default on MSTARV7

PATCH In review Daniel Palmer 2 participants 2 messages Dec 30, 2021 – Jan 3, 2022 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: msc313: Select by default on MSTARV7

All of the ARCH_MSTARV7 chips have this RTC so it's more likey ARCH_MSTARV7 wants it than doesn't.

At the same time fix up the indent on the depends on line that looks like it got converted from a tab to spaces at some point.

---
 drivers/rtc/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/rtc/Kconfig +2 -1
index 058e56a10ab8..9acd4ea267df 100644
@@ -1924,7 +1924,8 @@ config RTC_DRV_WILCO_EC
 
 config RTC_DRV_MSC313
 	tristate "MStar MSC313 RTC"
-        depends on ARCH_MSTARV7 || COMPILE_TEST
+	depends on ARCH_MSTARV7 || COMPILE_TEST
+	default ARCH_MSTARV7
 	help
 	  If you say yes here you get support for the Mstar MSC313e On-Chip
 	  Real Time Clock.
Signature · 1 line
2.34.1
#1 lore raw

Hi,

Quoted 17 lines · Daniel Palmer

All of the ARCH_MSTARV7 chips have this RTC so it's more likey ARCH_MSTARV7 wants it than doesn't.

At the same time fix up the indent on the depends on line that looks like it got converted from a tab to spaces at some point.

---
 drivers/rtc/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/rtc/Kconfig +0 -0
index 058e56a10ab8..9acd4ea267df 100644

drivers/rtc/Kconfig config RTC_DRV_WILCO_EC · line 1928

Quoted 6 lines
drivers/rtc/Kconfig +2 -1
@@ -1924,7 +1924,8 @@ config RTC_DRV_WILCO_EC
 
 config RTC_DRV_MSC313
        tristate "MStar MSC313 RTC"
-        depends on ARCH_MSTARV7 || COMPILE_TEST
+       depends on ARCH_MSTARV7 || COMPILE_TEST
+       default ARCH_MSTARV7

You still depend on ARCH_MSTARV7 so "default y" is enough. It will only work if the dependencies are satisfied and, when it is the case, the value can be overridden by the user.

Cheers,
Romain