OSDN Git Service

rtc: pcf8563: Fix interrupt trigger method
authorChen-Yu Tsai <wens@csie.org>
Tue, 4 Jun 2019 04:23:35 +0000 (12:23 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 20 Jun 2019 19:52:05 +0000 (21:52 +0200)
commit65f662cbf829834fa4d94190eb7691e5a9cb92d8
tree07d9173f52b9c9f9db01a46a84ac49b2382052dc
parentfedc459a3da35ecf171a1d6dd9f7f51fb452baf8
rtc: pcf8563: Fix interrupt trigger method

The PCF8563 datasheet says the interrupt line is active low and stays
active until the events are cleared, i.e. a level trigger interrupt.

Fix the flags used to request the interrupt.

Fixes: ede3e9d47cca ("drivers/rtc/rtc-pcf8563.c: add alarm support")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf8563.c