]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rtc: ds1307: update reference to removed CONFIG_RTC_DRV_DS1307_HWMON
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Wed, 10 Jun 2026 05:47:22 +0000 (22:47 -0700)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 25 Jun 2026 12:44:39 +0000 (14:44 +0200)
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.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link: https://patch.msgid.link/20260610054723.261008-1-enelsonmoore@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1307.c

index a77580c4eea725c4f9747fee228d6173d8084666..0707ded5368bf2dcbf6c9871271b82b5c3c716ec 100644 (file)
@@ -1415,7 +1415,7 @@ static void ds1307_hwmon_register(struct ds1307 *ds1307)
 {
 }
 
-#endif /* CONFIG_RTC_DRV_DS1307_HWMON */
+#endif /* IS_REACHABLE(CONFIG_HWMON) */
 
 /*----------------------------------------------------------------------*/