mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
driver core: add a helper to setup both the of_node and fwnode of a device
There are many places where both the fwnode_handle and the of_node of a device need to be populated. Add a function which does both so that we have consistency. Suggested-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
70ef608c22
commit
43e76d463c
@@ -819,6 +819,7 @@ int device_online(struct device *dev);
|
||||
void set_primary_fwnode(struct device *dev, struct fwnode_handle *fwnode);
|
||||
void set_secondary_fwnode(struct device *dev, struct fwnode_handle *fwnode);
|
||||
void device_set_of_node_from_dev(struct device *dev, const struct device *dev2);
|
||||
void device_set_node(struct device *dev, struct fwnode_handle *fwnode);
|
||||
|
||||
static inline int dev_num_vf(struct device *dev)
|
||||
{
|
||||
|
Reference in New Issue
Block a user