Skip to content

Commit 1736df1

Browse files
committed
gpiolib: acpi: Set label for IRQ only lines
When line locked as IRQ it has no label assigned. Assign the meaningful value to it. Ex. (for the PCA9355 and MAX3111e chips connected to the system): === Before === PCA953x: interrupt MAX3111e: interrupt === After === PCA953x: NIO1 GpioInt(0) MAX3111e: URT0 GpioInt(0) Acked-by: Mika Westerberg <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 716b532 commit 1736df1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpio/gpiolib-acpi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,10 @@ int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *con_id,
10661066
acpi_gpio_update_gpiod_lookup_flags(&lflags, &info);
10671067

10681068
snprintf(label, sizeof(label), "%pfwP GpioInt(%d)", fwnode, index);
1069+
ret = gpiod_set_consumer_name(desc, con_id ?: label);
1070+
if (ret)
1071+
return ret;
1072+
10691073
ret = gpiod_configure_flags(desc, label, lflags, dflags);
10701074
if (ret < 0)
10711075
return ret;

0 commit comments

Comments
 (0)