device property: Add fwnode_get_parent()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 28 Mar 2017 07:52:17 +0000 (10:52 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Mar 2017 22:00:27 +0000 (00:00 +0200)
commitafaf26fd8458be29949ae5a52c65a464a1b0cbb6
treed73b4b4f73b0fe5aa5df5bc4932aa5fa3c8a9d8d
parentdfa672fbc0d9e83ff0dc1a75f1f5d0e59a30706b
device property: Add fwnode_get_parent()

Now that ACPI has support for returning parent firmware node for both types
of nodes we can expose this to others as well. This adds a new function
fwnode_get_parent() that can be used for DT and ACPI nodes to retrieve the
parent firmware node.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/property.c
include/linux/property.h