]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
driver: therm_fan_est: lower message log level
authorShreshtha SAHU <ssahu@nvidia.com>
Wed, 15 Jul 2015 10:39:22 +0000 (16:09 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Tue, 11 Aug 2015 11:25:00 +0000 (04:25 -0700)
Lower log level of printing temperature and trip index
on each change from info to debug.

Bug 200102334

Change-Id: I326091f44cec53f10acdca850c1afde1d11b0a4a
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/770441
(cherry picked from commit 60e6b02a9bccc8ece59d9272de42ce9f4fb710eb)
Reviewed-on: http://git-master/r/781106
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/misc/therm_fan_est.c

index e0fdb0848f077d467b8082e3dfb7266d308b7e2a..73fae60ab2980e7718d4681aee4a1f9d6ba2624e 100644 (file)
@@ -107,7 +107,7 @@ static void therm_fan_est_work_func(struct work_struct *work)
                if (!((trip_index - 1) % 2) || (!est->current_trip_index) ||
                        ((trip_index - est->current_trip_index) >= 2) ||
                        ((trip_index - est->current_trip_index) <= -2)) {
-                       pr_info("%s, cur_temp:%ld, cur_trip_index:%d\n",
+                       pr_debug("%s, cur_temp:%ld, cur_trip_index:%d\n",
                        __func__, est->cur_temp, est->current_trip_index);
                        thermal_zone_device_update(est->thz);
                }
@@ -635,7 +635,7 @@ static int therm_fan_est_suspend(struct platform_device *pdev,
        if (!est)
                return -EINVAL;
 
-       pr_info("therm-fan-est: %s, cur_temp:%ld", __func__, est->cur_temp);
+       pr_debug("therm-fan-est: %s, cur_temp:%ld", __func__, est->cur_temp);
        cancel_delayed_work(&est->therm_fan_est_work);
        est->current_trip_index = 0;
 
@@ -648,7 +648,7 @@ static int therm_fan_est_resume(struct platform_device *pdev)
 
        if (!est)
                return -EINVAL;
-       pr_info("therm-fan-est: %s, cur_temp:%ld", __func__, est->cur_temp);
+       pr_debug("therm-fan-est: %s, cur_temp:%ld", __func__, est->cur_temp);
 
        queue_delayed_work(est->workqueue,
                                &est->therm_fan_est_work,