]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: properties: Align return codes of __acpi_node_get_property_reference()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 26 Sep 2017 09:08:27 +0000 (12:08 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Oct 2017 19:15:44 +0000 (21:15 +0200)
commitea274703766ab8c08cb133c5178278741662cb5d
tree49636b7f7c4f3e6dc9ff4be45a1516fac57fecd5
parentf7479e502b6d5a532a05cd73d0e383d3676755f9
ACPI: properties: Align return codes of __acpi_node_get_property_reference()

acpi_fwnode_get_reference_args(), the function implementing ACPI
support for fwnode_property_get_reference_args(), returns directly
error codes from __acpi_node_get_property_reference(). The latter
uses different error codes than the OF implementation. In particular,
the OF implementation uses -ENOENT to indicate that the property is
not found, a reference entry is empty and there are no more
references.

Document and align the error codes for property for
fwnode_property_get_reference_args() so that they match with
of_parse_phandle_with_args().

Fixes: 9dc988b1abd0 (device property: Introduce fwnode_property_get_reference_args)
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