diff mbox series

[-next] gpiolib: acpi: Use METHOD_NAME__AEI macro for acpi_walk_resources

Message ID 20221020014426.188667-1-xiangyang3@huawei.com
State Accepted
Commit eac001bf4a5b7d857ec228cd18b4e3644a5ceeb9
Headers show
Series [-next] gpiolib: acpi: Use METHOD_NAME__AEI macro for acpi_walk_resources | expand

Commit Message

Xiang Yang Oct. 20, 2022, 1:44 a.m. UTC
Using the METHOD_NAME__AEI macro instead of using "_AEI" directly.

Signed-off-by: Xiang Yang <xiangyang3@huawei.com>
---
 drivers/gpio/gpiolib-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Shevchenko Oct. 25, 2022, 4:47 p.m. UTC | #1
On Thu, Oct 20, 2022 at 04:30:27PM +0200, Bartosz Golaszewski wrote:
> On Thu, Oct 20, 2022 at 3:51 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Thu, Oct 20, 2022 at 03:23:27PM +0200, Bartosz Golaszewski wrote:

...

> > I think I will take it. Care to provide your tag?
> 
> Just take it, I will back it out.

Pushed to my review and testing queue, thanks!
diff mbox series

Patch

diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index a7d2358736fe..064ba5150fd4 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -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);