]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: add ioctl to get/clear battery low voltage status
authorAlexander Stein <alexander.stein@systec-electronic.com>
Tue, 29 May 2012 22:07:36 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:33 +0000 (16:22 -0700)
commit58ffe16b9de74184c8782588a5a359e5c13fd443
treee1016bbb7d43aa6086ea0ee5d1935b309d43d81c
parentd1bc94f8b1fe4d693038c48e0c86ede38e1c5ed4
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/rtc.h