diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-08-25 12:05:08 +0200 |
---|---|---|
committer | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-08-25 12:05:08 +0200 |
commit | 0ddbcb39c0dc0318f68d858f25a96a074142af2f (patch) | |
tree | 5d03620ef9894819ce22620ab26d853ca59b528e /drivers/input | |
parent | 7f3fbb9203e5070e70d0a05445f77d255c2db9c9 (diff) | |
download | kernel_samsung_smdk4412-0ddbcb39c0dc0318f68d858f25a96a074142af2f.zip kernel_samsung_smdk4412-0ddbcb39c0dc0318f68d858f25a96a074142af2f.tar.gz kernel_samsung_smdk4412-0ddbcb39c0dc0318f68d858f25a96a074142af2f.tar.bz2 |
cypress, mms_ts: disable debugging
Change-Id: Ie2b90efb763e1f80de4b57056ca447836c4ee2a4
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/cypress/cypress-touchkey.c | 21 | ||||
-rw-r--r-- | drivers/input/touchscreen/mms_ts.c | 10 |
2 files changed, 15 insertions, 16 deletions
diff --git a/drivers/input/keyboard/cypress/cypress-touchkey.c b/drivers/input/keyboard/cypress/cypress-touchkey.c index 72a3422..d29d91c 100644 --- a/drivers/input/keyboard/cypress/cypress-touchkey.c +++ b/drivers/input/keyboard/cypress/cypress-touchkey.c @@ -706,7 +706,7 @@ static irqreturn_t touchkey_interrupt(int irq, void *dev_id) // enable lights on keydown if (touch_led_disabled == 0) { if (touchkey_led_status == TK_CMD_LED_OFF) { - pr_info("[Touchkey] %s: keydown - LED ON\n", __func__); + pr_debug("[Touchkey] %s: keydown - LED ON\n", __func__); i2c_touchkey_write(tkey_i2c->client, (u8 *) &ledCmd[0], 1); touchkey_led_status = TK_CMD_LED_ON; } @@ -719,7 +719,7 @@ static irqreturn_t touchkey_interrupt(int irq, void *dev_id) // touch led timeout on keyup if (touch_led_disabled == 0) { if (timer_pending(&touch_led_timer) == 0) { - pr_info("[Touchkey] %s: keyup - add_timer\n", __func__); + pr_debug("[Touchkey] %s: keyup - add_timer\n", __func__); touch_led_timer.expires = jiffies + (HZ * touch_led_timeout); add_timer(&touch_led_timer); } else { @@ -1121,7 +1121,7 @@ static ssize_t touchkey_led_control(struct device *dev, if(data == ledCmd[0]) { if (touch_led_disabled == 0) { if (timer_pending(&touch_led_timer) == 0) { - pr_info("[Touchkey] %s: add_timer\n", __func__); + pr_debug("[Touchkey] %s: add_timer\n", __func__); touch_led_timer.expires = jiffies + (HZ * touch_led_timeout); add_timer(&touch_led_timer); } else { @@ -1130,7 +1130,7 @@ static ssize_t touchkey_led_control(struct device *dev, } } else { if (timer_pending(&touch_led_timer) == 1) { - pr_info("[Touchkey] %s: del_timer\n", __func__); + pr_debug("[Touchkey] %s: del_timer\n", __func__); del_timer(&touch_led_timer); } } @@ -1140,7 +1140,7 @@ static ssize_t touchkey_led_control(struct device *dev, touchled_cmd_reversed = 1; } - pr_info("[TouchKey] %s touchkey_led_status=%d\n", __func__, data); + pr_debug("[TouchKey] %s touchkey_led_status=%d\n", __func__, data); touchkey_led_status = data; return size; @@ -1216,7 +1216,6 @@ static DEVICE_ATTR(timeout, S_IRUGO | S_IWUSR | S_IWGRP, void touch_led_timedout(unsigned long ptr) { - pr_info("[TouchKey] %s\n", __func__); queue_work(tkey_i2c_local->wq, &tkey_i2c_local->work); } @@ -1227,7 +1226,7 @@ void touch_led_timedout_work(struct work_struct *work) if (touch_led_timeout != 0) { - pr_info("[TouchKey] %s disabling touchled\n", __func__); + pr_debug("[TouchKey] %s disabling touchled\n", __func__); i2c_touchkey_write(tkey_i2c->client, (u8 *) &ledCmd[1], 1); touchkey_led_status = TK_CMD_LED_OFF; } @@ -1240,21 +1239,21 @@ void touchscreen_state_report(int state) if (touch_led_disabled == 0) { if (state == 1) { if(touchkey_led_status == TK_CMD_LED_OFF) { - pr_info("[TouchKey] %s enable touchleds\n", __func__); + pr_debug("[TouchKey] %s enable touchleds\n", __func__); i2c_touchkey_write(tkey_i2c_local->client, (u8 *) &ledCmd[0], 1); touchkey_led_status = TK_CMD_LED_ON; } else { if (timer_pending(&touch_led_timer) == 1) { - pr_info("[TouchKey] %s mod_timer\n", __func__); + pr_debug("[TouchKey] %s mod_timer\n", __func__); mod_timer(&touch_led_timer, jiffies + (HZ * touch_led_timeout)); } } } else if (state == 0) { if (timer_pending(&touch_led_timer) == 1) { - pr_info("[TouchKey] %s mod_timer\n", __func__); + pr_debug("[TouchKey] %s mod_timer\n", __func__); mod_timer(&touch_led_timer, jiffies + (HZ * touch_led_timeout)); } else if (touchkey_led_status == TK_CMD_LED_ON){ - pr_info("[TouchKey] %s add_timer\n", __func__); + pr_debug("[TouchKey] %s add_timer\n", __func__); touch_led_timer.expires = jiffies + (HZ * touch_led_timeout); add_timer(&touch_led_timer); } diff --git a/drivers/input/touchscreen/mms_ts.c b/drivers/input/touchscreen/mms_ts.c index 3b86885..3afd366 100644 --- a/drivers/input/touchscreen/mms_ts.c +++ b/drivers/input/touchscreen/mms_ts.c @@ -425,7 +425,7 @@ static void change_dvfs_lock(struct work_struct *work) pr_err("%s: dev change bud lock failed(%d)\n",\ __func__, __LINE__); else - pr_info("[TSP] change_dvfs_lock"); + pr_debug("[TSP] change_dvfs_lock"); mutex_unlock(&info->dvfs_lock); } static void set_dvfs_off(struct work_struct *work) @@ -444,7 +444,7 @@ static void set_dvfs_off(struct work_struct *work) exynos_cpufreq_lock_free(DVFS_LOCK_ID_TSP); info->dvfs_lock_status = false; - pr_info("[TSP] DVFS Off!"); + pr_debug("[TSP] DVFS Off!"); mutex_unlock(&info->dvfs_lock); } @@ -485,7 +485,7 @@ static void set_dvfs_lock(struct mms_ts_info *info, uint32_t on) msecs_to_jiffies(TOUCH_BOOSTER_CHG_TIME)); info->dvfs_lock_status = true; - pr_info("[TSP] DVFS On![%d]", info->cpufreq_level); + pr_debug("[TSP] DVFS On![%d]", info->cpufreq_level); } } else if (on == 2) { cancel_delayed_work(&info->work_dvfs_off); @@ -663,7 +663,7 @@ static void release_all_fingers(struct mms_ts_info *info) input_sync(info->input_dev); #if TOUCH_BOOSTER set_dvfs_lock(info, 2); - pr_info("[TSP] dvfs_lock free.\n "); + pr_debug("[TSP] dvfs_lock free.\n "); #endif } @@ -949,7 +949,7 @@ static irqreturn_t mms_ts_interrupt(int irq, void *dev_id) #if defined(SEC_TSP_EVENT_DEBUG) && defined(CONFIG_TARGET_LOCALE_KOR) printk(KERN_DEBUG "[TSP] POS[%d](%4d,%4d)[D] tp = %d\n", id, x, y, touch_is_pressed); -#else +#elif defined(SEC_TSP_DEBUG) dev_notice(&client->dev, "finger [%d] down, palm %d\n", id, palm); #endif |