Sakari Ailus 51858a2777 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>
2017-10-11 21:16:37 +02:00
..
2017-10-04 17:34:41 +01:00
2017-09-11 13:10:57 -07:00
2016-04-27 23:42:57 +02:00
2016-01-04 22:10:30 +01:00
2017-08-24 03:38:25 +02:00
2017-07-04 14:16:49 -07:00
2016-10-10 02:20:43 +02:00
2017-05-09 15:15:47 -07:00
2017-05-03 12:16:25 -07:00
2017-08-07 14:28:51 +02:00