aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utcopy.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2014-02-07 20:42:32 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-10 18:30:25 -0500
commitab85e9285d3bd7b7587e0584016f80e88533c022 (patch)
treef7277ae611826229129051dac8b74ca0c9a0cfc4 /drivers/acpi/acpica/utcopy.c
parentfbb7a2dc2be493c87399550bdc2ddaa510cdf450 (diff)
ACPICA: Correctly support references in the union acpi_object.
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>
Diffstat (limited to 'drivers/acpi/acpica/utcopy.c')
-rw-r--r--drivers/acpi/acpica/utcopy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/utcopy.c b/drivers/acpi/acpica/utcopy.c
index 95e55f5bbabe..270c16464dd9 100644
--- a/drivers/acpi/acpica/utcopy.c
+++ b/drivers/acpi/acpica/utcopy.c
@@ -535,10 +535,10 @@ acpi_ut_copy_esimple_to_isimple(union acpi_object *external_object,
535 535
536 case ACPI_TYPE_LOCAL_REFERENCE: 536 case ACPI_TYPE_LOCAL_REFERENCE:
537 537
538 /* TBD: should validate incoming handle */ 538 /* An incoming reference is defined to be a namespace node */
539 539
540 internal_object->reference.class = ACPI_REFCLASS_NAME; 540 internal_object->reference.class = ACPI_REFCLASS_REFOF;
541 internal_object->reference.node = 541 internal_object->reference.object =
542 external_object->reference.handle; 542 external_object->reference.handle;
543 break; 543 break;
544 544