device property: Introduce fwnode_for_each_parent_node()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Apr 2022 18:48:41 +0000 (21:48 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Apr 2022 18:04:02 +0000 (20:04 +0200)
commit87ffea09470d94c93dd6a5a22d4b2216b395d1ea
tree0a7a4e6e181659066ce9fbea4781418a00064468
parent002752af7b89b74c64fe6bec8c5fde3d3a7810d8
device property: Introduce fwnode_for_each_parent_node()

In a few cases the functionality of fwnode_for_each_parent_node()
is already in use. Introduce a common helper macro for it.

It may be used by others as well in the future.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/property.c
include/linux/property.h