summaryrefslogtreecommitdiff
path: root/include/linux/property.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>2017-06-06 12:37:41 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-06-22 03:55:34 +0300
commit6a71d8d77795e0f7d887baa95bfc0d1d2bc74899 (patch)
tree729784ba33071398831c28855b86cc10b5e87b0d /include/linux/property.h
parent125ee6b3b0fa920c730b0991e6f083a9f5b1e4c3 (diff)
downloadlinux-6a71d8d77795e0f7d887baa95bfc0d1d2bc74899.tar.xz
device property: Add fwnode_graph_get_port_parent
Provide a helper to obtain the parent device fwnode without first parsing the remote-endpoint as per fwnode_graph_get_remote_port_parent. Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/property.h')
-rw-r--r--include/linux/property.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/property.h b/include/linux/property.h
index 0597a743aa66..7e77039e6b81 100644
--- a/include/linux/property.h
+++ b/include/linux/property.h
@@ -275,6 +275,8 @@ void *device_get_mac_address(struct device *dev, char *addr, int alen);
struct fwnode_handle *fwnode_graph_get_next_endpoint(
struct fwnode_handle *fwnode, struct fwnode_handle *prev);
+struct fwnode_handle *
+fwnode_graph_get_port_parent(struct fwnode_handle *fwnode);
struct fwnode_handle *fwnode_graph_get_remote_port_parent(
struct fwnode_handle *fwnode);
struct fwnode_handle *fwnode_graph_get_remote_port(