Skip to content

Commit

Permalink
libplatsupport: use proper return type
Browse files Browse the repository at this point in the history
Fix the semantics, technically it remains an integer.

Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider authored and lsf37 committed May 16, 2024
1 parent c913776 commit 60d4518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libplatsupport/include/platsupport/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 60d4518

Please sign in to comment.