From 106c5fc6fc119e0ed6c04093703102a8ed8131db Mon Sep 17 00:00:00 2001 From: David Wu Date: Fri, 6 Mar 2015 17:43:01 +0800 Subject: [PATCH] rk3368: thermal: remove dbg log Signed-off-by: David Wu --- drivers/thermal/rockchip_thermal.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c index 4eb595b26ef9..9413acde81b9 100755 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c @@ -28,6 +28,13 @@ #include #include +#if 0 +#define thermal_dbg(dev, format, arg...) \ + dev_printk(KERN_INFO , dev , format , ## arg) +#else +#define thermal_dbg(dev, format, arg...) +#endif + /** * If the temperature over a period of time High, @@ -820,7 +827,7 @@ static int rockchip_thermal_user_mode_get_temp(struct rockchip_thermal_data *the temp_cpu = rk_tsadcv3_code_to_temp((val_cpu * voltage + 500000) / 1000000) / 1000; temp_cpu = temp_cpu + thermal->cpu_temp_adjust; thermal->cpu_temp = temp_cpu; - pr_info("cpu[%d, %d], voltage: %d\n", val_cpu, temp_cpu, voltage); + thermal_dbg(&thermal->pdev->dev, "cpu[%d, %d], voltage: %d\n", val_cpu, temp_cpu, voltage); #endif return temp_cpu; -- 2.34.1