device property: Add fwnode_graph_get_endpoint_by_id()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 2 Apr 2019 10:30:37 +0000 (13:30 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 18 Apr 2019 14:44:05 +0000 (16:44 +0200)
commit0fcc2bdc8aff6e7feb3222930edb78b4b820cd3e
tree933368f7dc2a321af5d0efbc8fb6022e42b4236d
parent5f21f3055a32878c0c9d9ebbbafef72d60a1ff49
device property: Add fwnode_graph_get_endpoint_by_id()

fwnode_graph_get_endpoint_by_id() is intended for obtaining local
endpoints by a given local port.

fwnode_graph_get_endpoint_by_id() is slightly different from its OF
counterpart, of_graph_get_endpoint_by_regs(): instead of using -1 as
a value to indicate that a port or an endpoint number does not matter,
it uses flags to look for equal or greater endpoint. The port number
is always fixed. It also returns only remote endpoints that belong
to an available device, a behaviour that can be turned off with a flag.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
[ rjw: Changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/property.c
include/linux/property.h