device property: Introduce fwnode_property_get_reference_args
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 21 Jul 2017 12:11:49 +0000 (15:11 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Jul 2017 22:04:51 +0000 (00:04 +0200)
commit3e3119d3088f41106f3581d39e7694a50ca3fc02
treeb7215757dd95eda454860929de50319ca5f5d432
parent37ba983cfb47cc7b353146422c437468fcb29c61
device property: Introduce fwnode_property_get_reference_args

The new fwnode_property_get_reference_args() interface amends the fwnode
property API with the functionality of both of_parse_phandle_with_args()
and __acpi_node_get_property_reference().

The semantics is slightly different: the cells property is ignored on ACPI
as the number of arguments can be explicitly obtained from the firmware
interface.

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