rk3368: thermal: remove dbg log
authorDavid Wu <wdc@rock-chips.com>
Fri, 6 Mar 2015 09:43:01 +0000 (17:43 +0800)
committerDavid Wu <wdc@rock-chips.com>
Fri, 6 Mar 2015 09:43:01 +0000 (17:43 +0800)
Signed-off-by: David Wu <wdc@rock-chips.com>
drivers/thermal/rockchip_thermal.c

index 4eb595b26ef9be7db8ab81b8cc6f97f4f2a04907..9413acde81b9f67cc02901b3cdbd827fc6ec6fdc 100755 (executable)
 #include <linux/gpio.h>
 #include <linux/of_gpio.h>
 
+#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;