mfd: stm32-timers: Add support for interrupts
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Tue, 29 Aug 2023 13:40:25 +0000 (15:40 +0200)
committerLee Jones <lee@kernel.org>
Wed, 1 Nov 2023 10:02:12 +0000 (10:02 +0000)
commit1c7ea43fc42b09080657c83683846c4be672bd91
tree5890f6e812ca2444df22fcc2551cb92bd10d585c
parent63416320419e99ea4c6530587658e5d14e9402ba
mfd: stm32-timers: Add support for interrupts

There are two types of STM32 timers that may have:

- a global interrupt line
- 4 dedicated interrupt lines.

Those interrupts are optional as defined in the dt-bindings. Enforce checks
on either one, four or no interrupts are provided with their names.
Optionally get them here, to be used by child devices.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20230829134029.2402868-5-fabrice.gasnier@foss.st.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/stm32-timers.c
include/linux/mfd/stm32-timers.h