aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-11-08 13:03:11 -0800
committerDima Zavin <dima@android.com>2011-11-08 22:53:00 -0800
commit050c06eed4b2ffaaf064992615507e520808ec46 (patch)
treec02d763cc826038382a4e70842c86edf7da7bbd3 /drivers/input
parent3f4f629fc8fb79c489d302968a4e0cb489c50258 (diff)
downloadkernel_samsung_aries-050c06eed4b2ffaaf064992615507e520808ec46.zip
kernel_samsung_aries-050c06eed4b2ffaaf064992615507e520808ec46.tar.gz
kernel_samsung_aries-050c06eed4b2ffaaf064992615507e520808ec46.tar.bz2
input: gpio_input: don't print debounce message unless flag is set
Change-Id: I29ccb32e795c5c3e4c51c3d3a209f5b55dfd7d94 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/gpio_input.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/input/misc/gpio_input.c b/drivers/input/misc/gpio_input.c
index 904bd68..6a0c315 100644
--- a/drivers/input/misc/gpio_input.c
+++ b/drivers/input/misc/gpio_input.c
@@ -82,10 +82,11 @@ static enum hrtimer_restart gpio_event_input_timer_func(struct hrtimer *timer)
if (key_state->debounce & DEBOUNCE_UNSTABLE) {
debounce = key_state->debounce = DEBOUNCE_UNKNOWN;
enable_irq(gpio_to_irq(key_entry->gpio));
- pr_info("gpio_keys_scan_keys: key %x-%x, %d "
- "(%d) continue debounce\n",
- ds->info->type, key_entry->code,
- i, key_entry->gpio);
+ if (gpio_flags & GPIOEDF_PRINT_KEY_UNSTABLE)
+ pr_info("gpio_keys_scan_keys: key %x-%x, %d "
+ "(%d) continue debounce\n",
+ ds->info->type, key_entry->code,
+ i, key_entry->gpio);
}
npolarity = !(gpio_flags & GPIOEDF_ACTIVE_HIGH);
pressed = gpio_get_value(key_entry->gpio) ^ npolarity;