Re: [RFC PATCH v8 4/7] of/irq: Adjust of pci irq parsing for multiple interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi Rob,

On 10/27/2017 10:38 PM, Rob Herring wrote:
+		prop = of_find_property(dn, "interrupt-names", NULL);
>+		for (name = of_prop_next_string(prop, NULL); name;
>+		     name = of_prop_next_string(prop, name), index++) {
>+			if (!strcmp(name, "pci"))
>+				break;
Use of_property_match_string

i'm trying to find the first unnamed or "pci" named irq in the string array, so cannot use that API:)

but will change to of_property_for_each_string as Brian suggested.

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux