device property: Use fwnode_graph_for_each_endpoint() macro
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 1 Dec 2021 12:59:34 +0000 (14:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 17 Dec 2021 17:41:29 +0000 (18:41 +0100)
commit0d82017b70517b9b209ce7181d798a050ce23234
tree019471166ba6dba5076e7c3782d66b2746ee1e25
parentc87b8fc569667610b4891cad1e4a663e5a94d8f8
device property: Use fwnode_graph_for_each_endpoint() macro

Now that we have fwnode_graph_for_each_endpoint() macro, use it instead of
calling fwnode_graph_get_next_endpoint() directly. It manages the iterator
variable for the user without manual intervention.

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>
drivers/base/property.c