mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
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>
This commit is contained in:
parent
31bea23119
commit
6fd03f0248
@ -687,6 +687,9 @@ int acpi_gpio_update_gpiod_lookup_flags(unsigned long *lookupflags,
|
||||
case ACPI_PIN_CONFIG_PULLDOWN:
|
||||
*lookupflags |= GPIO_PULL_DOWN;
|
||||
break;
|
||||
case ACPI_PIN_CONFIG_NOPULL:
|
||||
*lookupflags |= GPIO_PULL_DISABLE;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user