lkml.org 
[lkml]   [2011]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] gpiolib: introduce gpio_set_deglitch
Hi,

On Fri, Nov 25, 2011 at 03:08:40PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> this will allow to manage the Glitch Input Filter
> as present on AT91 as example
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
> Cc: Grant Likely <grant.likely@secretlab.ca>
> ---
> drivers/gpio/gpiolib.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
> include/asm-generic/gpio.h | 4 ++++
> include/linux/gpio.h | 5 +++++
> 3 files changed, 53 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
> index b7e5e75..d2b1833 100644
> --- a/drivers/gpio/gpiolib.c
> +++ b/drivers/gpio/gpiolib.c
> @@ -1563,6 +1563,50 @@ fail:
> }
> EXPORT_SYMBOL_GPL(gpio_set_pullup);
>
> +/**
> + * gpio_set_deglitch - sets @deglitch for a @gpio
> + * @gpio: the gpio to set deglitch
> + * @deglitch: deglitch level
> + */
> +int gpio_set_deglitch(unsigned gpio, unsigned deglitch)

sounds a lot like debounce, what's the difference ?

--
balbi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-11-25 15:17    [W:1.215 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site