ACPICA: Cleanup for all string-to-integer conversions
ACPICA commit e2e72a351201fd58e4694418859ae2c247dafca0 Consolidate multiple versions of strtoul64 to one common version. limit possible bases to either 10 or 16. Handles both implicit and explicit conversions. Added a 2-character ascii-to-hex function for GPEs and buffers. Adds a new file, utstrtoul64.c Link: https://github.com/acpica/acpica/commit/e2e72a35 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>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
60361b7584
commit
5ebd2eaaef
@@ -521,9 +521,10 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)
|
||||
|
||||
case AML_TO_INTEGER_OP: /* to_integer (Data, Result) */
|
||||
|
||||
/* Perform "explicit" conversion */
|
||||
|
||||
status =
|
||||
acpi_ex_convert_to_integer(operand[0], &return_desc,
|
||||
ACPI_ANY_BASE);
|
||||
acpi_ex_convert_to_integer(operand[0], &return_desc, 0);
|
||||
if (return_desc == operand[0]) {
|
||||
|
||||
/* No conversion performed, add ref to handle return value */
|
||||
|
Reference in New Issue
Block a user