ACPICA: Add Buffer->String conversion for predefined methods
authorBob Moore <robert.moore@intel.com>
Fri, 14 Nov 2008 00:44:39 +0000 (08:44 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 30 Dec 2008 03:38:38 +0000 (22:38 -0500)
commita647b5c34047560d7efe7e53e756c6692ce67dc7
treef5fc81828932810ddaf19cd1f43732af48215433
parentd037c5fd7367548191eab2b376a1d08c4ffaf7ff
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>
drivers/acpi/namespace/nseval.c
drivers/acpi/namespace/nspredef.c
include/acpi/acnamesp.h