- int hsi_register_port_event(struct hsi_client * cl, void (*handler) (struct hsi_client *, unsigned long));
- HSI client that wants to receive port events
- Event handler callback
Clients should register a callback to be able to receive events from the ports. Registration should happen after claiming the port. The handler can be called in interrupt context.
Returns -errno on error, or 0 on success.