* dtb_node_irq_get_byname - Decode a node's IRQ and return it as a Linux IRQ number * @dev: pointer to device tree node * @name: IRQ name * * Returns Linux IRQ number on success, or 0 on the IRQ mapping failure, or * -EPROBE_DEFER if the IRQ domain is not yet created, or error code in case * of any other failure. */
| 525 | * of any other failure. |
| 526 | */ |
| 527 | int dtb_node_irq_get_byname(struct dtb_node *dev, const char *name) |
| 528 | { |
| 529 | int index; |
| 530 | |
| 531 | if (!name) |
| 532 | return -EINVAL; |
| 533 | |
| 534 | index = dtb_node_stringlist_search(dev, "interrupt-names", name); |
| 535 | if (index < 0) |
| 536 | return index; |
| 537 | |
| 538 | return dtb_node_irq_get(dev, index); |
| 539 | } |
| 540 | |
| 541 | /** |
| 542 | * dtb_node_irq_count - Count the number of IRQs a node uses |
nothing calls this directly
no test coverage detected