drivers: interrupt_controller: gd32_exti: isr may be unused
The gd32_exti_isr function may be unused if the GPIO driver is not enabled but EXTI is (no IRQ will connect to it). This may be improved in the future by requiring explicit enablement of the exti DT node. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
43b827c562
commit
07eee1bc79
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ static const uint8_t line2irq[NUM_EXTI_LINES] = {
|
||||||
#endif /* CONFIG_SOC_SERIES_GD32F4XX */
|
#endif /* CONFIG_SOC_SERIES_GD32F4XX */
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gd32_exti_isr(void *isr_data)
|
__unused static void gd32_exti_isr(void *isr_data)
|
||||||
{
|
{
|
||||||
const struct device *dev = DEVICE_DT_INST_GET(0);
|
const struct device *dev = DEVICE_DT_INST_GET(0);
|
||||||
struct gd32_exti_data *data = dev->data;
|
struct gd32_exti_data *data = dev->data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue