ACPICA: Fix required parameters for _NIG and _NIH
authorErik Kaneda <erik.kaneda@intel.com>
Tue, 5 May 2020 00:46:53 +0000 (17:46 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 May 2020 08:55:54 +0000 (10:55 +0200)
ACPICA commit 4b0e043386c7e698bea9e862f60a388647f56622

Previously, there was a mixup where _NIG required one parameter and
_NIH required zero parameters. This changes swaps these parameter
requirements. Now this change requires _NIH to be called with one
parameter and _NIG requires zero.

Link: https://github.com/acpica/acpica/commit/4b0e0433
Reported-by: Paul A Lohr <paul.a.lohr@intel.com>
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/acpredef.h

index cd0f5df..2cbb566 100644 (file)
@@ -640,10 +640,10 @@ const union acpi_predefined_info acpi_gbl_predefined_methods[] = {
        {{"_NIC", METHOD_0ARGS, /* ACPI 6.3 */
          METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
 
-       {{"_NIG", METHOD_1ARGS(ACPI_TYPE_BUFFER),       /* ACPI 6.3 */
+       {{"_NIG", METHOD_0ARGS, /* ACPI 6.3 */
          METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
 
-       {{"_NIH", METHOD_0ARGS, /* ACPI 6.3 */
+       {{"_NIH", METHOD_1ARGS(ACPI_TYPE_BUFFER), /* ACPI 6.3 */
          METHOD_RETURNS(ACPI_RTYPE_BUFFER)}},
 
        {{"_NTT", METHOD_0ARGS,