Commit 48feb337 authored by Felipe Balbi's avatar Felipe Balbi Committed by Linus Torvalds

arm: omap: switch over to gpio_set_debounce

Stop using the omap-specific implementations for gpio debouncing now that
gpiolib provides its own support.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: David Brownell <david-b@pacbell.net>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 168ef3d9
...@@ -137,9 +137,7 @@ static void ads7846_dev_init(void) ...@@ -137,9 +137,7 @@ static void ads7846_dev_init(void)
} }
gpio_direction_input(ts_gpio); gpio_direction_input(ts_gpio);
gpio_set_debounce(ts_gpio, 310);
omap_set_gpio_debounce(ts_gpio, 1);
omap_set_gpio_debounce_time(ts_gpio, 0xa);
} }
static int ads7846_get_pendown_state(void) static int ads7846_get_pendown_state(void)
......
...@@ -209,8 +209,7 @@ static void ads7846_dev_init(void) ...@@ -209,8 +209,7 @@ static void ads7846_dev_init(void)
} }
gpio_direction_input(ts_gpio); gpio_direction_input(ts_gpio);
omap_set_gpio_debounce(ts_gpio, 1); gpio_set_debounce(ts_gpio, 310);
omap_set_gpio_debounce_time(ts_gpio, 0xa);
} }
static int ads7846_get_pendown_state(void) static int ads7846_get_pendown_state(void)
......
...@@ -579,9 +579,7 @@ static void ads7846_dev_init(void) ...@@ -579,9 +579,7 @@ static void ads7846_dev_init(void)
printk(KERN_ERR "can't get ads7846 pen down GPIO\n"); printk(KERN_ERR "can't get ads7846 pen down GPIO\n");
gpio_direction_input(OMAP3_EVM_TS_GPIO); gpio_direction_input(OMAP3_EVM_TS_GPIO);
gpio_set_debounce(OMAP3_EVM_TS_GPIO, 310);
omap_set_gpio_debounce(OMAP3_EVM_TS_GPIO, 1);
omap_set_gpio_debounce_time(OMAP3_EVM_TS_GPIO, 0xa);
} }
static int ads7846_get_pendown_state(void) static int ads7846_get_pendown_state(void)
......
...@@ -130,8 +130,8 @@ static struct platform_device pandora_keys_gpio = { ...@@ -130,8 +130,8 @@ static struct platform_device pandora_keys_gpio = {
static void __init pandora_keys_gpio_init(void) static void __init pandora_keys_gpio_init(void)
{ {
/* set debounce time for GPIO banks 4 and 6 */ /* set debounce time for GPIO banks 4 and 6 */
omap_set_gpio_debounce_time(32 * 3, GPIO_DEBOUNCE_TIME); gpio_set_debounce(32 * 3, GPIO_DEBOUNCE_TIME);
omap_set_gpio_debounce_time(32 * 5, GPIO_DEBOUNCE_TIME); gpio_set_debounce(32 * 5, GPIO_DEBOUNCE_TIME);
} }
static int board_keymap[] = { static int board_keymap[] = {
......
...@@ -328,8 +328,7 @@ static void __init omap3_ads7846_init(void) ...@@ -328,8 +328,7 @@ static void __init omap3_ads7846_init(void)
} }
gpio_direction_input(OMAP3_TS_GPIO); gpio_direction_input(OMAP3_TS_GPIO);
omap_set_gpio_debounce(OMAP3_TS_GPIO, 1); gpio_set_debounce(OMAP3_TS_GPIO, 310);
omap_set_gpio_debounce_time(OMAP3_TS_GPIO, 0xa);
} }
static struct ads7846_platform_data ads7846_config = { static struct ads7846_platform_data ads7846_config = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment