summaryrefslogtreecommitdiff
path: root/include/linux/of_gpio.h
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2022-07-13 16:14:19 +0300
committerBartosz Golaszewski <brgl@bgdev.pl>2022-07-19 11:24:01 +0300
commit31bea23119cda87088c6bd4085a1e442c6c5974c (patch)
treee9da025ccb05f02898510e6607fad107811b14d9 /include/linux/of_gpio.h
parentc269df8c5ad316eac47a9078e7a2339e1956637a (diff)
downloadlinux-31bea23119cda87088c6bd4085a1e442c6c5974c.tar.xz
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>
Diffstat (limited to 'include/linux/of_gpio.h')
-rw-r--r--include/linux/of_gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h
index 8bf2ea859653..a5166eb93437 100644
--- a/include/linux/of_gpio.h
+++ b/include/linux/of_gpio.h
@@ -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