Skip to contentSkip to conversation

watchdog: da9063: Add hard dependency on I2C

PATCH In review Andrej Picej 2 participants 2 messages Nov 29, 2021 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: da9063: Add hard dependency on I2C

Commit 5ea29919c294 ("watchdog: da9063: use atomic safe i2c transfer in reset handler") implements atomic save i2c transfer which uses i2c functions directly. Add I2C hard dependency which overrides COMPILE_TEST.

Fixes 5ea29919c294 ("watchdog: da9063: use atomic safe i2c transfer in reset handler")
---
 drivers/watchdog/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/Kconfig +1 -0
index 9d222ba17ec6..3207085f799f 100644
@@ -207,6 +207,7 @@ config DA9055_WATCHDOG
 config DA9063_WATCHDOG
 	tristate "Dialog DA9063 Watchdog"
 	depends on MFD_DA9063 || COMPILE_TEST
+	depends on I2C
 	select WATCHDOG_CORE
 	help
 	  Support for the watchdog in the DA9063 PMIC.
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Andrej Picej

Commit 5ea29919c294 ("watchdog: da9063: use atomic safe i2c transfer in reset handler") implements atomic save i2c transfer which uses i2c functions directly. Add I2C hard dependency which overrides COMPILE_TEST.

Fixes 5ea29919c294 ("watchdog: da9063: use atomic safe i2c transfer in reset handler")
Quoted 17 lines
---
  drivers/watchdog/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/watchdog/Kconfig +1 -0
index 9d222ba17ec6..3207085f799f 100644
@@ -207,6 +207,7 @@ config DA9055_WATCHDOG
  config DA9063_WATCHDOG
  	tristate "Dialog DA9063 Watchdog"
  	depends on MFD_DA9063 || COMPILE_TEST
+	depends on I2C
  	select WATCHDOG_CORE
  	help
  	  Support for the watchdog in the DA9063 PMIC.