ACPI / property: Extend fwnode_property_* to data-only subnodes
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 27 Aug 2015 02:40:05 +0000 (04:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Sep 2015 23:47:34 +0000 (01:47 +0200)
commit3a7a2ab839ad18c2d542b40f4a647c98d068e55a
treefca2c5a901c97d41b2aa3ad44d72299b32226183
parent263b4c1a64bc12470684aeaf7c44f03d31716819
ACPI / property: Extend fwnode_property_* to data-only subnodes

Modify is_acpi_node() to return "true" for ACPI data-only subnodes as
well as for ACPI device objects and change the name of to_acpi_node()
to to_acpi_device_node() so it is clear that it covers ACPI device
objects only.  Accordingly, introduce to_acpi_data_node() to cover
data-only subnodes in an analogous way.

With that, make the fwnode_property_* family of functions work with
ACPI data-only subnodes introduced previously.

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