aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/uteval.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/uteval.c')
-rw-r--r--drivers/acpi/acpica/uteval.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/acpi/acpica/uteval.c b/drivers/acpi/acpica/uteval.c
index 9c9897dbe90..99bfbd23258 100644
--- a/drivers/acpi/acpica/uteval.c
+++ b/drivers/acpi/acpica/uteval.c
@@ -248,7 +248,7 @@ acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node,
248 248
249 /* Map the return object type to the bitmapped type */ 249 /* Map the return object type to the bitmapped type */
250 250
251 switch (ACPI_GET_OBJECT_TYPE(info->return_object)) { 251 switch ((info->return_object)->common.type) {
252 case ACPI_TYPE_INTEGER: 252 case ACPI_TYPE_INTEGER:
253 return_btype = ACPI_BTYPE_INTEGER; 253 return_btype = ACPI_BTYPE_INTEGER;
254 break; 254 break;
@@ -418,7 +418,7 @@ acpi_ut_execute_HID(struct acpi_namespace_node *device_node,
418 return_ACPI_STATUS(status); 418 return_ACPI_STATUS(status);
419 } 419 }
420 420
421 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 421 if (obj_desc->common.type == ACPI_TYPE_INTEGER) {
422 422
423 /* Convert the Numeric HID to string */ 423 /* Convert the Numeric HID to string */
424 424
@@ -459,7 +459,7 @@ acpi_ut_translate_one_cid(union acpi_operand_object *obj_desc,
459 struct acpi_compatible_id *one_cid) 459 struct acpi_compatible_id *one_cid)
460{ 460{
461 461
462 switch (ACPI_GET_OBJECT_TYPE(obj_desc)) { 462 switch (obj_desc->common.type) {
463 case ACPI_TYPE_INTEGER: 463 case ACPI_TYPE_INTEGER:
464 464
465 /* Convert the Numeric CID to string */ 465 /* Convert the Numeric CID to string */
@@ -527,7 +527,7 @@ acpi_ut_execute_CID(struct acpi_namespace_node * device_node,
527 /* Get the number of _CIDs returned */ 527 /* Get the number of _CIDs returned */
528 528
529 count = 1; 529 count = 1;
530 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_PACKAGE) { 530 if (obj_desc->common.type == ACPI_TYPE_PACKAGE) {
531 count = obj_desc->package.count; 531 count = obj_desc->package.count;
532 } 532 }
533 533
@@ -555,7 +555,7 @@ acpi_ut_execute_CID(struct acpi_namespace_node * device_node,
555 555
556 /* The _CID object can be either a single CID or a package (list) of CIDs */ 556 /* The _CID object can be either a single CID or a package (list) of CIDs */
557 557
558 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_PACKAGE) { 558 if (obj_desc->common.type == ACPI_TYPE_PACKAGE) {
559 559
560 /* Translate each package element */ 560 /* Translate each package element */
561 561
@@ -620,7 +620,7 @@ acpi_ut_execute_UID(struct acpi_namespace_node *device_node,
620 return_ACPI_STATUS(status); 620 return_ACPI_STATUS(status);
621 } 621 }
622 622
623 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 623 if (obj_desc->common.type == ACPI_TYPE_INTEGER) {
624 624
625 /* Convert the Numeric UID to string */ 625 /* Convert the Numeric UID to string */
626 626