aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/misc/mediatek/vibrator/vibrator_drv.c13
1 files 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);