summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-11-09 21:53:23 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-11-16 13:14:34 +0100
commitf725edd86b6b2415db9ae9bb6293f8300b9dbce9 (patch)
treed4bdd105e835c190834821fd8aa5c7e74f3aaa26 /drivers/gpio/gpiolib.h
parentgpiolib: Extract gpio_set_config_with_argument_optional() helper (diff)
downloadlinux-f725edd86b6b2415db9ae9bb6293f8300b9dbce9.tar.xz
linux-f725edd86b6b2415db9ae9bb6293f8300b9dbce9.zip
gpiolib: Introduce gpio_set_debounce_timeout() for internal use
In some cases we would like to have debounce setter which doesn't fail when a feature is not supported by a controller. Cc: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpio/gpiolib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h
index b674b5bb980e..42d81454da21 100644
--- a/drivers/gpio/gpiolib.h
+++ b/drivers/gpio/gpiolib.h
@@ -134,6 +134,7 @@ int gpiod_request(struct gpio_desc *desc, const char *label);
void gpiod_free(struct gpio_desc *desc);
int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
unsigned long lflags, enum gpiod_flags dflags);
+int gpio_set_debounce_timeout(struct gpio_desc *desc, unsigned int debounce);
int gpiod_hog(struct gpio_desc *desc, const char *name,
unsigned long lflags, enum gpiod_flags dflags);