Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libplatsupport: use proper return type #184

Merged
merged 2 commits into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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