]> 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>
Thu, 12 Apr 2012 22:52:25 +0000 (08:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:29 +0000 (13:47 +1000)
commit9de86a41460c8d1b70518580dcf694293bdca778
tree8dc8ab1dcba7ffa016227170b2e7fab8d0ba30ab
parent97fd6a2315ea0b097437d7a6f11f532c6f40b669
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