Skip to content

Commit eeeb777

Browse files
rtc: pcf2127: remove useless check
This check is only useful when introducing support for a new RTC in the driver. Cut down the number of strings in th driver. Link: https://lore.kernel.org/r/20230827214649.537095-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 2b0386d commit eeeb777

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/rtc/rtc-pcf2127.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,15 +1054,6 @@ static int pcf2127_enable_ts(struct device *dev, int ts_id)
10541054
return ret;
10551055
}
10561056

1057-
/* TS input pin driven to GND detection is supported by all variants.
1058-
* Make sure that interrupt bit is defined.
1059-
*/
1060-
if (pcf2127->cfg->ts[ts_id].gnd_detect_bit == 0) {
1061-
dev_err(dev, "%s: tamper detection to GND configuration invalid\n",
1062-
__func__);
1063-
return -EINVAL;
1064-
}
1065-
10661057
/*
10671058
* Enable interrupt generation when TSF timestamp flag is set.
10681059
* Interrupt signals are open-drain outputs and can be left floating if

0 commit comments

Comments
 (0)