rtc-pcf8523: add low battery voltage support
authorJesper Nilsson <jesper.nilsson@axis.com>
Fri, 22 Feb 2013 00:44:27 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:27 +0000 (17:22 -0800)
commitf32bc70d5f938cfef3e534c9db6d38a3759eac6d
tree2b3772a6c6923871136d6285bb28e3898c6fea42
parentfca1dd031a28da74db3df4921dc36fa78941c99f
rtc-pcf8523: add low battery voltage support

Implement reading of the battery voltage low signal for rtc-pcf8523.

The bit is read-only and cannot be cleared by software, so no
clear function is implemented.

[akpm@linux-foundation.org: omit pcf8563_rtc_ioctl() if CONFIG_RTC_INTF_DEV=n]
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pcf8523.c