ACPICA: Return method arg count from acpi_get_object_info
authorBob Moore <robert.moore@intel.com>
Fri, 4 Jul 2008 02:53:58 +0000 (10:53 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 23 Oct 2008 03:14:38 +0000 (23:14 -0400)
Also update the debugger so that the correct number of arguments is
passed to the method. Prevents a warning message from the debugger.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/namespace/nsxfname.c
include/acpi/actypes.h

index 3cb910ded44a9465f0f07808f90640f3058959ef..5efa4e7ddb0b18088f8cf68a34ba262f9e8aa677 100644 (file)
@@ -265,6 +265,10 @@ acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer)
        info->name = node->name.integer;
        info->valid = 0;
 
+       if (node->type == ACPI_TYPE_METHOD) {
+               info->param_count = node->object->method.param_count;
+       }
+
        status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
        if (ACPI_FAILURE(status)) {
                goto cleanup;
index 73d6b1cb07f3e7d981dc0935d16175ae099abb39..6bd08e83f31c4da013e88eda744b0ee5f7c5ac65 100644 (file)
@@ -859,6 +859,7 @@ struct acpi_obj_info_header {
 struct acpi_device_info {
        ACPI_COMMON_OBJ_INFO;
 
+       u32 param_count;        /* If a method, required parameter count */
        u32 valid;              /* Indicates which fields below are valid */
        u32 current_status;     /* _STA value */
        acpi_integer address;   /* _ADR value if any */