Skip to contentSkip to conversation

pcf2127: remove useless check

PATCH Superseded [email protected] 1 participant 1 message Aug 20, 2023 Real time clock (RTC)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 pcf2127: remove useless check

From: Alexandre Belloni <[email protected]>

Let's cut down on the number of strings in the driver as returning ret here will return 0 and the message is only useful when introducing support for a new RTC in the driver.

---
 drivers/rtc/rtc-pcf2127.c | 9 ---------
 1 file changed, 9 deletions(-)
drivers/rtc/rtc-pcf2127.c +0 -9
index 78141bb06ab0..8960213ce9da 100644
@@ -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 ret;
-	}
-
 	/*
 	 * Enable interrupt generation when TSF timestamp flag is set.
 	 * Interrupt signals are open-drain outputs and can be left floating if
Signature · 1 line
2.41.0