Lines Matching refs:child
264 struct device_node *child; in ns2_leds_get_of_pdata() local
278 for_each_child_of_node(np, child) { in ns2_leds_get_of_pdata()
283 ret = of_get_named_gpio(child, "cmd-gpio", 0); in ns2_leds_get_of_pdata()
287 ret = of_get_named_gpio(child, "slow-gpio", 0); in ns2_leds_get_of_pdata()
291 ret = of_property_read_string(child, "label", &string); in ns2_leds_get_of_pdata()
292 led->name = (ret == 0) ? string : child->name; in ns2_leds_get_of_pdata()
293 ret = of_property_read_string(child, "linux,default-trigger", in ns2_leds_get_of_pdata()
298 ret = of_property_count_u32_elems(child, "modes-map"); in ns2_leds_get_of_pdata()
313 of_property_read_u32_index(child, in ns2_leds_get_of_pdata()
316 of_property_read_u32_index(child, in ns2_leds_get_of_pdata()
319 of_property_read_u32_index(child, in ns2_leds_get_of_pdata()