rtc: m41t80: add alarm functionality
authorMylène Josserand <mylene.josserand@free-electrons.com>
Tue, 29 Mar 2016 09:04:13 +0000 (11:04 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 20 May 2016 10:33:51 +0000 (12:33 +0200)
commit9c6dfed92c3e86d6f84780625c0595ba56d03986
tree5a15faad73ac353a592504abbc26f43a26581dd4
parentfc99b90154e519dd6cd21cb11d013f36017a1b94
rtc: m41t80: add alarm functionality

Previous 'commit c3b79770e51a ("Expire alarms after the time is set")'
and 'commit 48e9766726eb ("remove disabled alarm functionality")' removed
the alarm support because the alarm irq was not functional.

Add the alarm IRQ functionality with newer functions than previous
code. Tested with 'rtctest' and the alarm is functional.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-m41t80.c