summaryrefslogtreecommitdiff
path: root/include/linux/gpio/machine.h
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2022-07-13 16:14:18 +0300
committerBartosz Golaszewski <brgl@bgdev.pl>2022-07-19 11:23:54 +0300
commitc269df8c5ad316eac47a9078e7a2339e1956637a (patch)
tree8ad8c050bf4f4da172f1c22fab15618bd8c576bb /include/linux/gpio/machine.h
parent28ba057456412794198ba6c953aa2042147c2de5 (diff)
downloadlinux-c269df8c5ad316eac47a9078e7a2339e1956637a.tar.xz
gpiolib: add support for bias pull disable
This change prepares the gpio core to look at firmware flags and set 'FLAG_BIAS_DISABLE' if necessary. It works in similar way to 'GPIO_PULL_DOWN' and 'GPIO_PULL_UP'. Signed-off-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'include/linux/gpio/machine.h')
-rw-r--r--include/linux/gpio/machine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/gpio/machine.h b/include/linux/gpio/machine.h
index 4d55da28e664..0b619eb7ae83 100644
--- a/include/linux/gpio/machine.h
+++ b/include/linux/gpio/machine.h
@@ -14,6 +14,7 @@ enum gpio_lookup_flags {
GPIO_TRANSITORY = (1 << 3),
GPIO_PULL_UP = (1 << 4),
GPIO_PULL_DOWN = (1 << 5),
+ GPIO_PULL_DISABLE = (1 << 6),
GPIO_LOOKUP_FLAGS_DEFAULT = GPIO_ACTIVE_HIGH | GPIO_PERSISTENT,
};