From: Thomas Renninger Subject: [PATCH 1/2] patch acpi_introduce_evaluate_string.patch Date: Mon, 25 Aug 2008 00:11:36 +0200 Message-ID: <1219615897-21130-2-git-send-email-trenn@suse.de> References: <20080821174852.0689681d@hyperion.delvare> Return-path: Received: from mx2.suse.de ([195.135.220.15]:38099 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753072AbYHXWLi (ORCPT ); Sun, 24 Aug 2008 18:11:38 -0400 In-Reply-To: <20080821174852.0689681d@hyperion.delvare> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: khali@linux-fr.org Cc: rui.zhang@intel.com, linux-acpi@vger.kernel.org, Thomas Renninger Signed-off-by: Thomas Renninger --- drivers/acpi/utils.c | 11 +++++------ include/acpi/acpi_bus.h | 4 ++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index 1009261..250d7f1 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c @@ -295,15 +295,14 @@ acpi_evaluate_integer(acpi_handle handle, EXPORT_SYMBOL(acpi_evaluate_integer); -#if 0 acpi_status acpi_evaluate_string(acpi_handle handle, acpi_string pathname, - acpi_object_list * arguments, acpi_string * data) + struct acpi_object_list *arguments, acpi_string *data) { acpi_status status = AE_OK; - acpi_object *element = NULL; - acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; + union acpi_object *element = NULL; + struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; if (!data) @@ -315,7 +314,7 @@ acpi_evaluate_string(acpi_handle handle, return status; } - element = (acpi_object *) buffer.pointer; + element = (union acpi_object *) buffer.pointer; if ((element->type != ACPI_TYPE_STRING) || (element->type != ACPI_TYPE_BUFFER) @@ -338,7 +337,7 @@ acpi_evaluate_string(acpi_handle handle, return AE_OK; } -#endif +EXPORT_SYMBOL(acpi_evaluate_string); acpi_status acpi_evaluate_reference(acpi_handle handle, diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index a5ac0bc..08a191f 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -48,6 +48,10 @@ acpi_evaluate_integer(acpi_handle handle, acpi_string pathname, struct acpi_object_list *arguments, unsigned long *data); acpi_status +acpi_evaluate_string(acpi_handle handle, + acpi_string pathname, + struct acpi_object_list *arguments, acpi_string *data); +acpi_status acpi_evaluate_reference(acpi_handle handle, acpi_string pathname, struct acpi_object_list *arguments, -- 1.5.4.5