summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2022-07-11 14:26:01 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-07-27 21:16:31 +0200
commit5ee772883af5ed2dfe17e8af2b09d7003344be6c (patch)
tree6541d20ab41c23fd6e3f45a0196000debfcaced6 /drivers/acpi
parent1d52f10917a751f90e269a0ed9b6cca60dbe0300 (diff)
downloadlwn-5ee772883af5ed2dfe17e8af2b09d7003344be6c.tar.gz
lwn-5ee772883af5ed2dfe17e8af2b09d7003344be6c.zip
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: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/property.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c
index 9f34e01c2a9a..b607e4829c1c 100644
--- a/drivers/acpi/property.c
+++ b/drivers/acpi/property.c
@@ -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;