Commit 5ee77288 authored by Sakari Ailus's avatar Sakari Ailus Committed by Rafael J. Wysocki
Browse files

ACPI: property: Use acpi_object_type consistently in property ref parsing



The type of union acpi_object field type is acpi_object_type. Use that
instead of int.

Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 1d52f109
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -793,7 +793,7 @@ int __acpi_node_get_property_reference(const struct fwnode_handle *fwnode,
			 * nor integer, return an error, we can't parse it.
			 */
			for (i = 0; element + i < end && i < num_args; i++) {
				int type = element[i].type;
				acpi_object_type type = element[i].type;

				if (type == ACPI_TYPE_LOCAL_REFERENCE)
					break;