mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
irqdomain: Introduce is_fwnode_irqchip helper
Since there will be several places checking if fwnode.type is equal FWNODE_IRQCHIP, this patch adds a convenient function for this purpose. Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Suravee Suthikulpanit <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
This commit is contained in:
parent
471036b2b8
commit
75aba7b0e9
3 changed files with 7 additions and 2 deletions
|
|
@ -972,7 +972,7 @@ static int gic_irq_domain_translate(struct irq_domain *d,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (fwspec->fwnode->type == FWNODE_IRQCHIP) {
|
||||
if (is_fwnode_irqchip(fwspec->fwnode)) {
|
||||
if(fwspec->param_count != 2)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue