]> 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, 3 May 2012 05:44:32 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:51 +0000 (15:46 +1000)
commit2f085c32764017f2e05ad5d79e48f75495e18bb6
treebb259c9abf6e93c6e58025726f011a1e71e01440
parent99f674ca8b15aa214f1a8b6898764c1855fde5d6
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