Skip to contentSkip to conversation

rtc: ds1307: update reference to removed CONFIG_RTC_DRV_DS1307_HWMON

PATCH Applied Ethan Nelson-Moore 2 participants 2 messages Jun 10 – Jun 25 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: ds1307: update reference to removed CONFIG_RTC_DRV_DS1307_HWMON

The CONFIG_RTC_DRV_DS1307_HWMON macro was removed in favor of CONFIG_HWMON in commit 6b583a64fd1e ("rtc: ds1307: simplify hwmon config"), but a reference to it remained in a comment. Correct this reference.

Discovered while searching for CONFIG_* symbols referenced in code but not defined in any Kconfig file.

---
 drivers/rtc/rtc-ds1307.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-ds1307.c +1 -1
index 7205c59ff729..6dce01e3373a 100644
@@ -1409,7 +1409,7 @@ static void ds1307_hwmon_register(struct ds1307 *ds1307)
 {
 }
 
-#endif /* CONFIG_RTC_DRV_DS1307_HWMON */
+#endif /* IS_REACHABLE(CONFIG_HWMON) */
 
 /*----------------------------------------------------------------------*/
 
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Ethan Nelson-Moore

The CONFIG_RTC_DRV_DS1307_HWMON macro was removed in favor of CONFIG_HWMON in commit 6b583a64fd1e ("rtc: ds1307: simplify hwmon config"), but a reference to it remained in a comment. Correct this reference.

Discovered while searching for CONFIG_* symbols referenced in code but not defined in any Kconfig file.

[...]

Applied, thanks!

[1/1] rtc: ds1307: update reference to removed CONFIG_RTC_DRV_DS1307_HWMON

      https://git.kernel.org/abelloni/c/3c8f28578a0d

Best regards,

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com