]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: isl1208: do not advertise update interrupt feature if no interrupt specified
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Mon, 23 May 2022 14:53:20 +0000 (16:53 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 24 Jun 2022 19:24:02 +0000 (21:24 +0200)
commit84e1bed647b1b1bff4abe8f0602b54300862d5fa
tree622d63a98a3bf021edf33a48652b4d67a48ffdf5
parent472f7a168876c5e5b968ed4798b13a3de947db8f
rtc: isl1208: do not advertise update interrupt feature if no interrupt specified

If an ISL1208 device does not have an interrupt line routed, the feature
shouldn't be advertised (it is by default in rtc core) or it'll confuse
userspace requesting that feature (such as hwclock from util-linux).

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220523145320.123713-1-foss+kernel@0leil.net
drivers/rtc/rtc-isl1208.c