rtc: abx80x: Implement RTC_VL_READ,CLR ioctls
authorMarek Vasut <marex@denx.de>
Fri, 7 Dec 2018 17:40:53 +0000 (18:40 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 18 Dec 2018 21:53:27 +0000 (22:53 +0100)
commitffe1c5a2d4271a0e04e2576ab0a53ac09a14e065
treeb052907a8e934b0670ef753cca5b8aeb22810c33
parentfc979933bcf162595b6004d0de4effb64c323152
rtc: abx80x: Implement RTC_VL_READ,CLR ioctls

Implement standard ioctls for polling the battery status and clearing
the battery low indication from userspace.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-abx80x.c