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 committed May 16, 2024
1 parent ff7c25b commit 15a2252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libplatsupport/include/platsupport/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ 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 15a2252

Please sign in to comment.