summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-pcf85063.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-12-14 23:02:52 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-12-18 10:37:33 +0100
commit0295c27f90bb6ec43ab519b63948c11d01d29604 (patch)
treec17ffa81621829ddf8ea20b7dcce545d9e1b7613 /drivers/rtc/rtc-pcf85063.c
parentb371b10e949a81693d5f3f327ebb86a81829045b (diff)
downloadlwn-0295c27f90bb6ec43ab519b63948c11d01d29604.tar.gz
lwn-0295c27f90bb6ec43ab519b63948c11d01d29604.zip
rtc: pcf85063: remove RTC_VL_CLR handling
Remove RTC_VL_CLR handling because it is a disservice to userspace as it removes the important information that the RTC data is invalid. This may lead userspace to set an invalid system time later on. Link: https://lore.kernel.org/r/20191214220259.621996-11-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-pcf85063.c')
-rw-r--r--drivers/rtc/rtc-pcf85063.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-pcf85063.c b/drivers/rtc/rtc-pcf85063.c
index 1afa6d9fa9fb..2ddd95420a8c 100644
--- a/drivers/rtc/rtc-pcf85063.c
+++ b/drivers/rtc/rtc-pcf85063.c
@@ -299,12 +299,6 @@ static int pcf85063_ioctl(struct device *dev, unsigned int cmd,
return 0;
- case RTC_VL_CLR:
- ret = regmap_update_bits(pcf85063->regmap, PCF85063_REG_SC,
- PCF85063_REG_SC_OS, 0);
-
- return ret;
-
default:
return -ENOIOCTLCMD;
}