Lines Matching refs:fwnode
62 struct led_pwm *led, struct fwnode_handle *fwnode) in led_pwm_add() argument
65 struct led_init_data init_data = { .fwnode = fwnode }; in led_pwm_add()
74 led_data->pwm = devm_fwnode_pwm_get(dev, fwnode, NULL); in led_pwm_add()
137 struct fwnode_handle *fwnode; in led_pwm_create_fwnode() local
143 device_for_each_child_node(dev, fwnode) { in led_pwm_create_fwnode()
144 ret = fwnode_property_read_string(fwnode, "label", &led.name); in led_pwm_create_fwnode()
145 if (ret && is_of_node(fwnode)) in led_pwm_create_fwnode()
146 led.name = to_of_node(fwnode)->name; in led_pwm_create_fwnode()
153 led.active_low = fwnode_property_read_bool(fwnode, in led_pwm_create_fwnode()
155 fwnode_property_read_u32(fwnode, "max-brightness", in led_pwm_create_fwnode()
158 led.default_state = led_init_default_state_get(fwnode); in led_pwm_create_fwnode()
160 ret = led_pwm_add(dev, priv, &led, fwnode); in led_pwm_create_fwnode()
168 fwnode_handle_put(fwnode); in led_pwm_create_fwnode()