diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2017-10-11 10:06:13 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-10-11 21:16:37 +0200 |
commit | 51858a2777f025333c5ac3b3484263bba56461b3 (patch) | |
tree | e70003f60ad317b651c2661f5d1eb7e0265412a3 /arch/Kconfig | |
parent | ACPI: properties: Align return codes of __acpi_node_get_property_reference() (diff) | |
download | linux-51858a2777f025333c5ac3b3484263bba56461b3.tar.xz linux-51858a2777f025333c5ac3b3484263bba56461b3.zip |
ACPI: properties: Fix __acpi_node_get_property_reference() return codes
Fix more return codes for device property: Align return codes of
__acpi_node_get_property_reference().
In particular, what was missed previously:
-EPROTO could be returned in certain cases, now -EINVAL;
-EINVAL was returned if the property was not found, now -ENOENT;
-EINVAL was returned also if the index was higher than the number of
entries in a package, now -ENOENT.
Reported-by: Hyungwoo Yang <hyungwoo.yang@intel.com>
Fixes: 3e3119d3088f (device property: Introduce fwnode_property_get_reference_args)
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Hyungwoo Yang <hyungwoo.yang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/Kconfig')
0 files changed, 0 insertions, 0 deletions