From 79877190c5cc30e42c90953e9043720003ecc8c9 Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Thu, 16 May 2024 15:32:22 +0200 Subject: [PATCH] libplatsupport: use proper return type Fix the semantics, technically it remains an integer. Signed-off-by: Axel Heider --- libplatsupport/include/platsupport/irq.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libplatsupport/include/platsupport/irq.h b/libplatsupport/include/platsupport/irq.h index 8119b9d10..2aa3d6e29 100644 --- a/libplatsupport/include/platsupport/irq.h +++ b/libplatsupport/include/platsupport/irq.h @@ -128,7 +128,8 @@ typedef struct { ps_irq_unregister_fn_t irq_unregister_fn; } ps_irq_ops_t; -static inline int ps_irq_register(ps_irq_ops_t *irq_ops, ps_irq_t irq, irq_callback_fn_t callback, void *callback_data) +static inline irq_id_t ps_irq_register(ps_irq_ops_t *irq_ops, ps_irq_t irq, irq_callback_fn_t callback, + void *callback_data) { __PS_IRQ_VALID_ARGS(irq_register_fn); return irq_ops->irq_register_fn(irq_ops->cookie, irq, callback, callback_data);