From f6d5c2e4b40c28fbff831f783ab4c648bff803ba Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Thu, 19 Sep 2024 16:54:40 +0800 Subject: [PATCH] drivers: intc: shared_irq: change init and isr function to static Device init & ISR functions should be made static. Signed-off-by: Yong Cong Sin Signed-off-by: Yong Cong Sin --- drivers/interrupt_controller/intc_shared_irq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/interrupt_controller/intc_shared_irq.c b/drivers/interrupt_controller/intc_shared_irq.c index 337a1e432b7..d8cf6c31c0c 100644 --- a/drivers/interrupt_controller/intc_shared_irq.c +++ b/drivers/interrupt_controller/intc_shared_irq.c @@ -117,7 +117,7 @@ static inline int disable(const struct device *dev, return -EIO; } -void shared_irq_isr(const struct device *dev) +static void shared_irq_isr(const struct device *dev) { struct shared_irq_runtime *clients = dev->data; const struct shared_irq_config *config = dev->config; @@ -137,9 +137,10 @@ static const struct shared_irq_driver_api api_funcs = { }; -int shared_irq_initialize(const struct device *dev) +static int shared_irq_initialize(const struct device *dev) { const struct shared_irq_config *config = dev->config; + config->config(); return 0; }