Skip to content

Commit 6fd03f0

Browse files
nunojsabrgl
authored andcommitted
gpiolib: acpi: support bias pull disable
On top of looking at PULL_UP and PULL_DOWN flags, also look at PULL_DISABLE and set the appropriate GPIO flag. The GPIO core will then pass down this to controllers that support it. Signed-off-by: Nuno Sá <nuno.sa@analog.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
1 parent 31bea23 commit 6fd03f0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpio/gpiolib-acpi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,9 @@ int acpi_gpio_update_gpiod_lookup_flags(unsigned long *lookupflags,
687687
case ACPI_PIN_CONFIG_PULLDOWN:
688688
*lookupflags |= GPIO_PULL_DOWN;
689689
break;
690+
case ACPI_PIN_CONFIG_NOPULL:
691+
*lookupflags |= GPIO_PULL_DISABLE;
692+
break;
690693
default:
691694
break;
692695
}

0 commit comments

Comments
 (0)