]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: da9063: simplify irq management
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 20 Mar 2025 10:18:49 +0000 (11:18 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 8 Apr 2025 14:43:41 +0000 (16:43 +0200)
commitd370586746466166a57b709bfce8301f2adf97a0
tree94d61a41e203938eb449b33878139752b9f3812c
parent0bddd060a6a3a10e6ebd386cc4d9a897e8a60861
rtc: da9063: simplify irq management

The code for enabling and disabling the irq is so similar that it can
easily be handled by one function. Like in most other RTC drivers. Save
the duplicated code and one layer of indirection.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250320102218.10781-2-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-da9063.c