Hi Rob, On 10/27/2017 10:38 PM, Rob Herring wrote:
i'm trying to find the first unnamed or "pci" named irq in the string array, so cannot use that API:)+ 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
but will change to of_property_for_each_string as Brian suggested.