]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: add ioctl to get/clear battery low voltage status
authorAlexander Stein <alexander.stein@systec-electronic.com>
Wed, 25 Apr 2012 01:04:37 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:36 +0000 (15:17 +1000)
commit4f84ebbf7c4584c0dc40b46713b557e012bc32d3
tree519b75cdfa665bcc6779009895e149d529a4eea5
parent44bc72d65cd4e8a42b97973106ee8561566cdf82
rtc: add ioctl to get/clear battery low voltage status

Currently there is no generic way to get the RTC battery status within an
application.  So add an ioctl to read the status bit.  The idea is that
the bit is set once a low voltage is detected.  It stays there until it is
reset using the RTC_VL_CLR ioctl.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/rtc.h