Skip to content

Commit

Permalink
PCI: brcmstb: Cast an int variable to an irq_hw_number_t
Browse files Browse the repository at this point in the history
Just make it clear to the reader that there is a conversion happening,
in this case from an int type to an irq_hw_number_t, an unsigned long int.

Signed-off-by: Jim Quinlan <[email protected]>
  • Loading branch information
jamesequinlan authored and 6by9 committed Feb 6, 2025
1 parent bb9937f commit 83dbce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/controller/pcie-brcmstb.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static int brcm_irq_domain_alloc(struct irq_domain *domain, unsigned int virq,
return hwirq;

for (i = 0; i < nr_irqs; i++)
irq_domain_set_info(domain, virq + i, hwirq + i,
irq_domain_set_info(domain, virq + i, (irq_hw_number_t)hwirq + i,
&brcm_msi_bottom_irq_chip, domain->host_data,
handle_edge_irq, NULL, NULL);
return 0;
Expand Down

0 comments on commit 83dbce4

Please sign in to comment.