ACPI: properties: Return _DSD hierarchical extension (data) sub-nodes correctly
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 8 Sep 2017 09:24:41 +0000 (12:24 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 19 Sep 2017 21:20:24 +0000 (23:20 +0200)
commit0c0bceb796878a5baea1f47033215fac0774e498
treefca365eccc0fa0179ea77635a1adc72a024404ed
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ACPI: properties: Return _DSD hierarchical extension (data) sub-nodes correctly

The recently merged patch "ACPI: Prepare for constifying
acpi_get_next_subnode() fwnode argument" was part of a patchset
constifying the fwnode arguments across the fwnode property API. The
purpose of the patch was to allow returning non-const fwnodes from a data
structure the root of which is const.

Unfortunately the patch introduced the functionality, in particular when
starting parsed from an ACPI device node, the hierarchical data extension
nodes would not be enumerated.

Restore the old behaviour while still retaining constness properties of
the patch.

Fixes: 01c1da289791 "ACPI: Prepare for constifying acpi_get_next_subnode() fwnode argument"
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/property.c