diff options
author | Alexander Stein <alexander.stein@systec-electronic.com> | 2012-05-30 00:07:36 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-30 01:22:33 +0200 |
commit | e311c9295912209dcf8e54de5401f8518112b7f8 (patch) | |
tree | e1016bbb7d43aa6086ea0ee5d1935b309d43d81c /drivers/rtc/rtc-pcf8563.c | |
parent | drivers/rtc/rtc-ep93xx.c: convert to use module_platform_driver() (diff) | |
download | linux-e311c9295912209dcf8e54de5401f8518112b7f8.tar.xz linux-e311c9295912209dcf8e54de5401f8518112b7f8.zip |
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>
Diffstat (limited to 'drivers/rtc/rtc-pcf8563.c')
0 files changed, 0 insertions, 0 deletions