aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-rv3028.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-12-14 23:02:54 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-12-18 10:37:37 +0100
commit92c02daabae61df37c9743e15f239a27f4917df3 (patch)
treeea59815ccfdfc0bd88679676210aa3405a96b2bc /drivers/rtc/rtc-rv3028.c
parentf86dc5bde18e540743eaef20529d9f2b67283abd (diff)
downloadlinux-92c02daabae61df37c9743e15f239a27f4917df3.tar.gz
rtc: rv3028: 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-13-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-rv3028.c')
-rw-r--r--drivers/rtc/rtc-rv3028.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-rv3028.c b/drivers/rtc/rtc-rv3028.c
index 6b7b3a69601a5..d1a2c22861f20 100644
--- a/drivers/rtc/rtc-rv3028.c
+++ b/drivers/rtc/rtc-rv3028.c
@@ -438,12 +438,6 @@ static int rv3028_ioctl(struct device *dev, unsigned int cmd, unsigned long arg)
return 0;
- case RTC_VL_CLR:
- ret = regmap_update_bits(rv3028->regmap, RV3028_STATUS,
- RV3028_STATUS_PORF, 0);
-
- return ret;
-
default:
return -ENOIOCTLCMD;
}