Lines Matching defs:fwnode
378 struct fwnode_handle *fwnode = led_cdev->dev->fwnode;
382 count = fwnode_property_count_u32(fwnode, "led-pattern");
390 if (fwnode_property_read_u32_array(fwnode, "led-pattern", pattern, count)) {
420 struct fwnode_handle *fwnode,
425 if (!fwnode)
428 if (fwnode_property_present(fwnode, "label")) {
429 ret = fwnode_property_read_string(fwnode, "label", &props->label);
435 if (fwnode_property_present(fwnode, "color")) {
436 ret = fwnode_property_read_u32(fwnode, "color", &props->color);
446 if (!fwnode_property_present(fwnode, "function"))
449 ret = fwnode_property_read_string(fwnode, "function", &props->function);
456 if (!fwnode_property_present(fwnode, "function-enumerator"))
459 ret = fwnode_property_read_u32(fwnode, "function-enumerator",
474 struct fwnode_handle *fwnode = init_data->fwnode;
480 led_parse_fwnode_props(dev, fwnode, &props);
522 } else if (is_of_node(fwnode)) {
523 strscpy(led_classdev_name, to_of_node(fwnode)->name,
532 enum led_default_state led_init_default_state_get(struct fwnode_handle *fwnode)
536 if (!fwnode_property_read_string(fwnode, "default-state", &state)) {