mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
gpiolib: of: 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> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
This commit is contained in:
committed by
Bartosz Golaszewski
parent
c269df8c5a
commit
31bea23119
@@ -29,6 +29,7 @@ enum of_gpio_flags {
|
||||
OF_GPIO_TRANSITORY = 0x8,
|
||||
OF_GPIO_PULL_UP = 0x10,
|
||||
OF_GPIO_PULL_DOWN = 0x20,
|
||||
OF_GPIO_PULL_DISABLE = 0x40,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_OF_GPIO
|
||||
|
||||
Reference in New Issue
Block a user