rtc: m41t80: fix SQWE override when setting an alarm
authorGary Bisson <gary.bisson@boundarydevices.com>
Tue, 25 Apr 2017 14:45:14 +0000 (16:45 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 31 May 2017 07:17:02 +0000 (09:17 +0200)
commit2de9261c18c2b09a8025872bb470853dc8db726c
treeb1c09c7520d81fcace10cfe7e3b3fc468511ec3a
parent8066360744743fb7f2dee1e2041fc9fc92f9d6b5
rtc: m41t80: fix SQWE override when setting an alarm

Currently setting an alarm clears the SQWE bit which means that the
clock output is disabled no matter its previous state.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-m41t80.c