Skip to content

Commit

Permalink
ACPICA: Correctly support references in the union acpi_object.
Browse files Browse the repository at this point in the history
This change fixes the support to allow references (namespace nodes)
to be passed as arguments to control methods via the evaluate object
interface. This is probably most useful for testing purposes, however.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Feb 10, 2014
1 parent fbb7a2d commit ab85e92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/acpi/acpica/utcopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,10 @@ acpi_ut_copy_esimple_to_isimple(union acpi_object *external_object,

case ACPI_TYPE_LOCAL_REFERENCE:

/* TBD: should validate incoming handle */
/* An incoming reference is defined to be a namespace node */

internal_object->reference.class = ACPI_REFCLASS_NAME;
internal_object->reference.node =
internal_object->reference.class = ACPI_REFCLASS_REFOF;
internal_object->reference.object =
external_object->reference.handle;
break;

Expand Down

0 comments on commit ab85e92

Please sign in to comment.