staticintphylink_parse_mode(structphylink*pl,structfwnode_handle*fwnode){structfwnode_handle*dn;constchar*managed;dn=fwnode_get_named_child_node(fwnode,"fixed-link");if(dn||fwnode_property_present(fwnode,"fixed-link"))pl->link_an_mode=MLO_AN_FIXED;fwnode_handle_put(dn);if(fwnode_propert...
*/ struct fwnode_operations { struct fwnode_handle *(*get)(struct fwnode_handle *fwnode); void (*put)(struct fwnode_handle *fwnode); bool (*device_is_available)(const struct fwnode_handle *fwnode); const void *(*device_get_match_data)(const struct fwnode_handle *fwnode, const struct...
FWNODE_FLAG_LINKS_ADDEDBIT(0)#defineFWNODE_FLAG_NOT_DEVICEBIT(1)#defineFWNODE_FLAG_INITIALIZEDBIT(2)#defineFWNODE_FLAG_NEEDS_CHILD_BOUND_ON_ADDBIT(3)#defineFWNODE_FLAG_BEST_EFFORTBIT(4)#defineFWNODE_FLAG_VISITEDBIT(5)structfwnode_handle{structfwnode_handle*secondary;conststructfwnode_operations*...
>>> * @local_node: pointer to device_node of this endpoint >>> @@ -233,6 +255,24 @@ int v4l2_fwnode_parse_link(struct fwnode_handle >>> *fwnode, >>> */ >>> void v4l2_fwnode_put_link(struct v4l2_fwnode_link *link); >>> >>> +/** >>> + * v4l2_fwnode_device_parse()...
> EXPORT_SYMBOL_GPL(v4l2_fwnode_put_link); > > +int v4l2_fwnode_register_controls(struct fwnode_handle *fwnode, > + struct v4l2_ctrl_handler *hdl, > + const struct v4l2_ctrl_ops *ctrl_ops) I'm not convinced that this helper is a good idea. ...
*/ struct fwnode_operations { void (*get)(struct fwnode_handle *fwnode); void (*put)(struct fwnode_handle *fwnode); bool (*device_is_available)(struct fwnode_handle *fwnode); bool (*property_present)(struct fwnode_handle *fwnode, const char *propname); int (*property_read_int_ar...
+struct usb_role_switch *fwnode_usb_role_switch_get(struct fwnode_handle *node); void usb_role_switch_put(struct usb_role_switch *sw); struct usb_role_switch * @@ -70,6 +71,12 @@ static inline struct usb_role_switch *usb_role_switch_get(struct device *dev) ...