Skip to content

Commit a57b7fb

Browse files
Sakari Ailusrafaeljw
authored andcommitted
device property: Move fwnode_get_parent() up
Move fwnode_get_parent() above fwnode_get_next_parent(), making the order the same as in the header file. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 56c9aa0 commit a57b7fb

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎drivers/base/property.c‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,19 @@ int device_add_properties(struct device *dev,
556556
}
557557
EXPORT_SYMBOL_GPL(device_add_properties);
558558

559+
/**
560+
* fwnode_get_parent - Return parent firwmare node
561+
* @fwnode: Firmware whose parent is retrieved
562+
*
563+
* Return parent firmware node of the given node if possible or %NULL if no
564+
* parent was available.
565+
*/
566+
struct fwnode_handle *fwnode_get_parent(const struct fwnode_handle *fwnode)
567+
{
568+
return fwnode_call_ptr_op(fwnode, get_parent);
569+
}
570+
EXPORT_SYMBOL_GPL(fwnode_get_parent);
571+
559572
/**
560573
* fwnode_get_next_parent - Iterate to the node's parent
561574
* @fwnode: Firmware whose parent is retrieved
@@ -577,19 +590,6 @@ struct fwnode_handle *fwnode_get_next_parent(struct fwnode_handle *fwnode)
577590
}
578591
EXPORT_SYMBOL_GPL(fwnode_get_next_parent);
579592

580-
/**
581-
* fwnode_get_parent - Return parent firwmare node
582-
* @fwnode: Firmware whose parent is retrieved
583-
*
584-
* Return parent firmware node of the given node if possible or %NULL if no
585-
* parent was available.
586-
*/
587-
struct fwnode_handle *fwnode_get_parent(const struct fwnode_handle *fwnode)
588-
{
589-
return fwnode_call_ptr_op(fwnode, get_parent);
590-
}
591-
EXPORT_SYMBOL_GPL(fwnode_get_parent);
592-
593593
/**
594594
* fwnode_get_next_child_node - Return the next child node handle for a node
595595
* @fwnode: Firmware node to find the next child node for.

0 commit comments

Comments
 (0)