Messages in this thread | | | Subject | Re: [PATCH 2/5] device property: Add fwnode_get_name for returning the name of a node | From | Randy Dunlap <> | Date | Sun, 24 Mar 2019 10:21:17 -0700 |
| |
Hi,
On 3/22/19 8:29 AM, Sakari Ailus wrote: > diff --git a/drivers/base/property.c b/drivers/base/property.c > index 3f5ff6b23ae4..7ee3786bcde3 100644 > --- a/drivers/base/property.c > +++ b/drivers/base/property.c > @@ -533,6 +533,18 @@ int device_add_properties(struct device *dev, > EXPORT_SYMBOL_GPL(device_add_properties); > > /** > + * fwnode_get_name - Return the name of a node > + * > + * @fwnode - The firmware node
s/-/:/
> + * > + * Returns a pointer to the node name. > + */ > +const char *fwnode_get_name(const struct fwnode_handle *fwnode) > +{ > + return fwnode_call_ptr_op(fwnode, get_name); > +} > + > +/** > * fwnode_get_parent - Return parent firwmare node > * @fwnode: Firmware whose parent is retrieved > *
-- ~Randy
| |