OSDN Git Service

rtc: rv3028: Use IRQ flags obtained from device tree if available
authorWadim Egorov <w.egorov@phytec.de>
Thu, 8 Dec 2022 13:36:05 +0000 (14:36 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 15 Dec 2022 22:34:31 +0000 (23:34 +0100)
commit16b26f6027588be4414fb69d665bd07c9cb828e9
treeaeb6b23b95fe8a2c2986dd17e78dc5424ebcb25c
parent0feebdeb3acc0375cd817385d637d27a8a6dca97
rtc: rv3028: Use IRQ flags obtained from device tree if available

Make the interrupt pin of the RV3028 usable with GPIO controllers
without level type IRQs support, such as the TI Davinci GPIO controller.

Therefore, allow the IRQ type to be passed from the device tree if
available.

Based on commit d4785b46345c ("rtc: pcf2127: use IRQ flags obtained from device tree if available")

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Link: https://lore.kernel.org/r/20221208133605.4193907-1-w.egorov@phytec.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rv3028.c