October 2017
Intermediate to advanced
586 pages
14h 8m
English
my_gpiochip->irq_domain = irq_domain_add_linear( client->dev.of_node,
my_gpiochip->chip.ngpio, &mcp23016_irq_domain_ops, NULL);
The host_data parameter is NULL. Therefore, you can parse whatever data structure you need. Prior to allocating the domain, our domain ops structure should be defined, as follows:
static struct irq_domain_ops mcp23016_irq_domain_ops ...