* [PATCH v2] rtc: pcf2127: remove useless check
@ 2023-08-27 21:46 alexandre.belloni
0 siblings, 0 replies; only message in thread
From: alexandre.belloni @ 2023-08-27 21:46 UTC (permalink / raw)
To: Alessandro Zummo, Alexandre Belloni; +Cc: linux-rtc, linux-kernel
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
This check is only useful when introducing support for a new RTC in the
driver. Cut down the number of strings in th driver.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-pcf2127.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c
index de8164e1b562..9c04c4e1a49c 100644
--- a/drivers/rtc/rtc-pcf2127.c
+++ b/drivers/rtc/rtc-pcf2127.c
@@ -1054,15 +1054,6 @@ static int pcf2127_enable_ts(struct device *dev, int ts_id)
return ret;
}
- /* TS input pin driven to GND detection is supported by all variants.
- * Make sure that interrupt bit is defined.
- */
- if (pcf2127->cfg->ts[ts_id].gnd_detect_bit == 0) {
- dev_err(dev, "%s: tamper detection to GND configuration invalid\n",
- __func__);
- return -EINVAL;
- }
-
/*
* Enable interrupt generation when TSF timestamp flag is set.
* Interrupt signals are open-drain outputs and can be left floating if
--
2.41.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-27 21:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-27 21:46 [PATCH v2] rtc: pcf2127: remove useless check alexandre.belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).