From 0929991fa4ec1931d9dabd6f2d8ec055b7f6b42d Mon Sep 17 00:00:00 2001 From: Shangbing Hu Date: Thu, 10 Aug 2017 10:27:33 +0800 Subject: vibrator: delete more log [Detail] delete more log [Solution] delete more log MTK-Commit-Id: 1f1494edf8bb600dfede431d102a5fbbaa04816a Change-Id: I6309eb44c76b588ff44dd7f2a937b3e4c5d5e7bb Signed-off-by: Shangbing Hu CR-Id: ALPS02571387 Feature: WiFi Calling Service (cherry picked from commit 93f355c2b37d923cd463bb71e20dc8c7e7596cca) (cherry picked from commit b0e147971dcd0d178a1ee6043dcd49dec5f434e7) --- drivers/misc/mediatek/vibrator/vibrator_drv.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/misc/mediatek/vibrator/vibrator_drv.c b/drivers/misc/mediatek/vibrator/vibrator_drv.c index 0c85c3705..4578bc8e5 100644 --- a/drivers/misc/mediatek/vibrator/vibrator_drv.c +++ b/drivers/misc/mediatek/vibrator/vibrator_drv.c @@ -127,19 +127,20 @@ static void vibrator_enable(struct timed_output_dev *dev, int value) struct vibrator_hw *hw = mt_get_cust_vibrator_hw(); #endif - printk("[vibrator]vibrator_enable: vibrator first in value = %d\n", value); + /* printk("[vibrator]vibrator_enable: vibrator first in value = %d\n", value); */ spin_lock_irqsave(&vibe_lock, flags); while (hrtimer_cancel(&vibe_timer)) { - printk("[vibrator]vibrator_enable: try to cancel hrtimer\n"); + printk("vibrator_enable: try to cancel hrtimer[cust timer: %d(ms)], value: %d\n", + hw->vib_timer, value); } if (value == 0 || shutdown_flag == 1) { - printk("[vibrator]vibrator_enable: shutdown_flag = %d\n", shutdown_flag); + /* printk("[vibrator]vibrator_enable: shutdown_flag = %d\n", shutdown_flag); */ vibe_state = 0; } else { #if 1 - printk("[vibrator]vibrator_enable: vibrator cust timer: %d\n", hw->vib_timer); + /* printk("[vibrator]vibrator_enable: vibrator cust timer: %d\n", hw->vib_timer); */ #ifdef CUST_VIBR_LIMIT if (value > hw->vib_limit && value < hw->vib_timer) #else @@ -154,7 +155,7 @@ static void vibrator_enable(struct timed_output_dev *dev, int value) ktime_set(value / 1000, (value % 1000) * 1000000), HRTIMER_MODE_REL); } spin_unlock_irqrestore(&vibe_lock, flags); - printk("[vibrator]vibrator_enable: vibrator start: %d\n", value); + /* printk("[vibrator]vibrator_enable: vibrator start: %d\n", value); */ queue_work(vibrator_queue, &vibrator_work); } @@ -274,7 +275,7 @@ static int vib_mod_init(void) hrtimer_init(&vibe_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); vibe_timer.function = vibrator_timer_func; - timed_output_dev_register(&mtk_vibrator); + timed_output_dev_register(&mtk_vibrator); /* timed_output driver model */ ret = platform_driver_register(&vibrator_driver); -- cgit v1.2.3