Lines Matching refs:child
91 struct led_pwm *led, struct device_node *child) in led_pwm_add() argument
104 if (child) in led_pwm_add()
105 led_data->pwm = devm_of_pwm_get(dev, child, NULL); in led_pwm_add()
147 struct device_node *child; in led_pwm_create_of() local
153 for_each_child_of_node(dev->of_node, child) { in led_pwm_create_of()
154 led.name = of_get_property(child, "label", NULL) ? : in led_pwm_create_of()
155 child->name; in led_pwm_create_of()
157 led.default_trigger = of_get_property(child, in led_pwm_create_of()
159 led.active_low = of_property_read_bool(child, "active-low"); in led_pwm_create_of()
160 of_property_read_u32(child, "max-brightness", in led_pwm_create_of()
163 ret = led_pwm_add(dev, priv, &led, child); in led_pwm_create_of()
165 of_node_put(child); in led_pwm_create_of()