mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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>
This commit is contained in:
parent
b371b10e94
commit
0295c27f90
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue