]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit - include/linux/i2c/twl4030.h
twl4030-gpio debounce cleanup
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 7 Nov 2008 19:59:49 +0000 (11:59 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 7 Nov 2008 20:05:24 +0000 (12:05 -0800)
commit444fcab6e8f8bad4ffc50feb91516c246d91e901
treefb727eec445a2b02c4fbdaf0df52e632413976c0
parentf28501e8ea08b553b599ae0f59a543603928d770
twl4030-gpio debounce cleanup

Provide a static debounce configuration mechanism for twl4030 GPIOs,
replacing the previous dynamic one.  The single user of that mechanism
was for MMC card detect debouncing.

Boards can provide a bitmask saying which GPIOs to debounce (30 msec).
It's always enabled for pins with the MMC card-detect/VMMCx link active,
so most boards won't need to set the debounce mask.

This is a net code shrink, including runtime footprint.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/gpio/twl4030-gpio.c
include/linux/i2c/twl4030.h