gpiolib: acpi: Use METHOD_NAME__AEI macro for acpi_walk_resources
authorXiang Yang <xiangyang3@huawei.com>
Thu, 20 Oct 2022 01:44:26 +0000 (09:44 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 25 Oct 2022 16:47:12 +0000 (19:47 +0300)
Using the METHOD_NAME__AEI macro instead of using "_AEI" directly.

Signed-off-by: Xiang Yang <xiangyang3@huawei.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib-acpi.c

index a7d2358..064ba51 100644 (file)
@@ -512,7 +512,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)
        if (ACPI_FAILURE(status))
                return;
 
-       acpi_walk_resources(handle, "_AEI",
+       acpi_walk_resources(handle, METHOD_NAME__AEI,
                            acpi_gpiochip_alloc_event, acpi_gpio);
 
        mutex_lock(&acpi_gpio_deferred_req_irqs_lock);