diff options
author | Bob Moore <robert.moore@intel.com> | 2008-11-14 08:44:39 +0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-29 22:38:38 -0500 |
commit | a647b5c34047560d7efe7e53e756c6692ce67dc7 (patch) | |
tree | f5fc81828932810ddaf19cd1f43732af48215433 /drivers/acpi/namespace/nseval.c | |
parent | d037c5fd7367548191eab2b376a1d08c4ffaf7ff (diff) | |
download | talos-op-linux-a647b5c34047560d7efe7e53e756c6692ce67dc7.tar.gz talos-op-linux-a647b5c34047560d7efe7e53e756c6692ce67dc7.zip |
ACPICA: Add Buffer->String conversion for predefined methods
For predefined methods (such as _BIF), add automatic conversion for
objects that are required to be a String, but a Buffer was found
instead. This can happen when reading string battery data from
an operation region, because it used to be difficult to convert
the data from buffer to string from within the ASL. Linux BZ 11822.
http://bugzilla.kernel.org/show_bug.cgi?id=11822
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/namespace/nseval.c')
-rw-r--r-- | drivers/acpi/namespace/nseval.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/namespace/nseval.c b/drivers/acpi/namespace/nseval.c index 4cdf03ac2b46..738a4517b7c1 100644 --- a/drivers/acpi/namespace/nseval.c +++ b/drivers/acpi/namespace/nseval.c @@ -282,8 +282,7 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info * info) * the method on invalid return object. */ (void)acpi_ns_check_predefined_names(node, - info-> - return_object); + &info->return_object); } /* Mark the node as having been evaluated */ |