提交 5ee77288 编写于 作者: S Sakari Ailus 提交者: Rafael J. Wysocki

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: NSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 1d52f109
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册