]> git.baikalelectronics.ru Git - kernel.git/commit
twl4030-gpio: cleanup debounce
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 6 Jan 2009 22:42:26 +0000 (14:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:25 +0000 (15:59 -0800)
commit9c2b0849662cd4a1fdfca3dd0f979a5af7dca2c6
treedb8acce21cc4c9762da5f815779ec702f5a59c0c
parentc4c76a671451a5386c9815fe08a67ae51ba46b69
twl4030-gpio: cleanup debounce

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/twl4030-gpio.c
include/linux/i2c/twl4030.h