]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
media: tegra: replace dev_warn with dev_notice
authorCharlie Huang <chahuang@nvidia.com>
Thu, 4 Apr 2013 23:22:08 +0000 (16:22 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:08:00 +0000 (13:08 -0700)
Messages that are logged as "warnings" which aren't real warnings need
to be dropped down a level so that they aren't flagged.

bug 1249596

Change-Id: I28111610ea5cac9e54e9bcce0ead211a68a045e4
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/216714
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
drivers/media/video/tegra/as364x.c
drivers/media/video/tegra/imx091.c
drivers/media/video/tegra/lm3565.c
drivers/media/video/tegra/max77387.c
drivers/media/video/tegra/max77665-flash.c

index 770762434b80e96583fb488923783a16aeb7fda6..5429e208e0100fb1bbe6302656a35677fd289fdb 100644 (file)
@@ -496,7 +496,7 @@ static void as364x_config_init(struct as364x_info *info)
                        memcpy(&pcfg->led_config[i], &pcfg_cust->led_config[i],
                                sizeof(pcfg_cust->led_config[0]));
                else
-                       dev_warn(info->dev,
+                       dev_notice(info->dev,
                                "%s: invalid led config[%d].\n", __func__, i);
        }
 
@@ -583,7 +583,7 @@ static int as364x_configure(struct as364x_info *info, bool update)
 
        if (pcfg->max_peak_current_mA > pcap->max_peak_curr_mA ||
                !pcfg->max_peak_current_mA) {
-               dev_warn(info->dev,
+               dev_notice(info->dev,
                        "max_peak_current_mA of %d invalid changing to %d\n",
                        pcfg->max_peak_current_mA, pcap->max_peak_curr_mA);
                pcfg->max_peak_current_mA = pcap->max_peak_curr_mA;
@@ -608,7 +608,7 @@ static int as364x_configure(struct as364x_info *info, bool update)
 
        if (pcfg->max_sustained_current_mA > pcap->max_assist_curr_mA ||
                !pcfg->max_sustained_current_mA) {
-               dev_warn(info->dev,
+               dev_notice(info->dev,
                        "max_sustained_current_mA of %d invalid"
                        "changing to %d\n",
                        pcfg->max_sustained_current_mA,
@@ -618,12 +618,12 @@ static int as364x_configure(struct as364x_info *info, bool update)
        }
        if ((1000 * pcfg->min_current_mA) < pcap->curr_step_uA) {
                pcfg->min_current_mA = pcap->curr_step_uA / 1000;
-               dev_warn(info->dev,
+               dev_notice(info->dev,
                        "min_current_mA lower than possible, increasing to %d\n",
                        pcfg->min_current_mA);
        }
        if (pcfg->min_current_mA > pcap->max_indicator_curr_mA) {
-               dev_warn(info->dev,
+               dev_notice(info->dev,
                        "min_current_mA of %d higher than possible,"
                        " reducing to %d",
                        pcfg->min_current_mA, pcap->max_indicator_curr_mA);
index 84d726e63cd0ada2fa5565e636446ca2469595ec..11d96c7a39d7a2a1d059c4e3639bad98d2f8b629 100644 (file)
@@ -1338,7 +1338,7 @@ static void imx091_edp_register(struct imx091_info *info)
 
        info->edpc = NULL;
        if (!edpc->num_states) {
-               dev_info(&info->i2c_client->dev,
+               dev_notice(&info->i2c_client->dev,
                        "%s: NO edp states defined.\n", __func__);
                return;
        }
index dda3f0e9ee7cdc904444be3a444d373cea0d3b2e..8c3d0d132ed3a232748f7d1a3d8049dee658ead3 100644 (file)
@@ -482,7 +482,7 @@ static int lm3565_configure(struct lm3565_info *info, bool update)
 
        if (pcfg->max_peak_current_mA > pcap->max_peak_curr_mA ||
                !pcfg->max_peak_current_mA) {
-               dev_warn(info->dev,
+               dev_notice(info->dev,
                        "max_peak_current_mA of %d invalid changed to %d\n",
                                pcfg->max_peak_current_mA,
                                pcap->max_peak_curr_mA);
@@ -491,7 +491,7 @@ static int lm3565_configure(struct lm3565_info *info, bool update)
 
        if (pcfg->max_sustained_current_mA > pcap->max_assist_curr_mA ||
                !pcfg->max_sustained_current_mA) {
-               dev_warn(info->dev,
+               dev_notice(info->dev,
                        "max_sustained_current_mA %d invalid changed to %d\n",
                                pcfg->max_sustained_current_mA,
                                pcap->max_assist_curr_mA);
@@ -500,7 +500,7 @@ static int lm3565_configure(struct lm3565_info *info, bool update)
        }
        if ((1000 * pcfg->min_current_mA) < pcap->curr_step_uA) {
                pcfg->min_current_mA = pcap->curr_step_uA / 1000;
-               dev_warn(info->dev,
+               dev_notice(info->dev,
                        "min_current_mA lower than possible, increased to %d\n",
                                pcfg->min_current_mA);
        }
index 6d07f06d2536ba628d9920d333ee274dad3903b0..9fe6d6bdf83160fa7daab13215fb1af7ecc673b1 100644 (file)
@@ -402,7 +402,7 @@ static void max77387_edp_register(struct max77387_info *info)
 
        info->edpc = NULL;
        if (!edpc->num_states) {
-               dev_warn(info->dev, "%s: NO edp states defined.\n", __func__);
+               dev_notice(info->dev, "%s: NO edp states defined.\n", __func__);
                return;
        }
 
@@ -727,7 +727,7 @@ static void max77387_update_config(struct max77387_info *info)
                        memcpy(&pcfg->led_config[i], &pcfg_cust->led_config[i],
                                sizeof(pcfg_cust->led_config[0]));
                else
-                       dev_warn(info->dev,
+                       dev_notice(info->dev,
                                "%s: invalid led config[%d].\n", __func__, i);
        }
 
@@ -883,9 +883,9 @@ static int max77387_configure(struct max77387_info *info, bool update)
 
        if (pcfg->max_peak_current_mA > max77387_caps.max_peak_curr_mA ||
                !pcfg->max_peak_current_mA) {
-               dev_warn(info->dev, "invalid max_peak_current_mA: %d,",
+               dev_notice(info->dev, "invalid max_peak_current_mA: %d,",
                                pcfg->max_peak_current_mA);
-               dev_info(info->dev, " changed to %d\n",
+               dev_notice(info->dev, " changed to %d\n",
                                max77387_caps.max_peak_curr_mA);
                pcfg->max_peak_current_mA = max77387_caps.max_peak_curr_mA;
        }
@@ -893,7 +893,7 @@ static int max77387_configure(struct max77387_info *info, bool update)
        pst->tx1_mask = 0;
        if (pcfg->tx1_mask_mA) {
                if (pcfg->tx1_mask_mA > 1000) {
-                       dev_warn(info->dev, "%s: tx1_mask OUT OF RANGE. %d\n",
+                       dev_notice(info->dev, "%s: tx1_mask OUT OF RANGE. %d\n",
                                __func__, pcfg->tx1_mask_mA);
                        pcfg->tx1_mask_mA = 1000;
                }
@@ -904,7 +904,7 @@ static int max77387_configure(struct max77387_info *info, bool update)
        pst->tx1_mask = 0;
        if (pcfg->tx2_mask_mA) {
                if (pcfg->tx2_mask_mA > 1000) {
-                       dev_warn(info->dev, "%s: tx2_mask OUT OF RANGE. %d\n",
+                       dev_notice(info->dev, "%s: tx2_mask OUT OF RANGE. %d\n",
                                __func__, pcfg->tx2_mask_mA);
                        pcfg->tx2_mask_mA = 1000;
                }
@@ -913,12 +913,12 @@ static int max77387_configure(struct max77387_info *info, bool update)
        }
 
        if (pcfg->flash_rampup_uS > 32896) {
-               dev_warn(info->dev, "%s: flash ramp up OUT OF RANGE. %d\n",
+               dev_notice(info->dev, "%s: flash ramp up OUT OF RANGE. %d\n",
                                __func__, pcfg->flash_rampup_uS);
                pcfg->flash_rampup_uS = 32896;
        }
        if (pcfg->flash_rampdn_uS > 32896) {
-               dev_warn(info->dev, "%s: flash ramp up OUT OF RANGE. %d\n",
+               dev_notice(info->dev, "%s: flash ramp up OUT OF RANGE. %d\n",
                                __func__, pcfg->flash_rampdn_uS);
                pcfg->flash_rampdn_uS = 32896;
        }
@@ -926,12 +926,12 @@ static int max77387_configure(struct max77387_info *info, bool update)
                                pcfg->flash_rampdn_uS / 384;
 
        if (pcfg->torch_rampup_uS > 32896) {
-               dev_warn(info->dev, "%s: torch ramp up OUT OF RANGE. %d\n",
+               dev_notice(info->dev, "%s: torch ramp up OUT OF RANGE. %d\n",
                                __func__, pcfg->torch_rampup_uS);
                pcfg->torch_rampup_uS = 32896;
        }
        if (pcfg->torch_rampdn_uS > 32896) {
-               dev_warn(info->dev, "%s: torch ramp up OUT OF RANGE. %d\n",
+               dev_notice(info->dev, "%s: torch ramp up OUT OF RANGE. %d\n",
                                __func__, pcfg->torch_rampdn_uS);
                pcfg->torch_rampdn_uS = 32896;
        }
@@ -957,9 +957,9 @@ static int max77387_configure(struct max77387_info *info, bool update)
 
        if (pcfg->max_torch_current_mA > max77387_caps.max_torch_curr_mA ||
                !pcfg->max_torch_current_mA) {
-               dev_warn(info->dev, "invalid max_torch_current_mA: %d,",
+               dev_notice(info->dev, "invalid max_torch_current_mA: %d,",
                                pcfg->max_torch_current_mA);
-               dev_info(info->dev, " changed to %d\n",
+               dev_notice(info->dev, " changed to %d\n",
                                max77387_caps.max_torch_curr_mA);
                pcfg->max_torch_current_mA =
                        max77387_caps.max_torch_curr_mA;
@@ -1717,7 +1717,7 @@ static int max77387_probe(
                info->pdata = client->dev.platform_data;
                dev_dbg(&client->dev, "pdata: %s\n", info->pdata->dev_name);
        } else
-               dev_warn(&client->dev, "%s NO platform data\n", __func__);
+               dev_notice(&client->dev, "%s NO platform data\n", __func__);
 
        max77387_power_get(info);
 
index 2feee300eb42e4f463593bd6f6077cc221689434..fbcf6a842db2df01a92ec886dcf9994a66701ae0 100644 (file)
@@ -406,7 +406,7 @@ static void max77665_f_edp_register(struct max77665_f_info *info)
 
        info->edpc = NULL;
        if (!edpc->num_states) {
-               dev_warn(info->dev, "%s: NO edp states defined.\n", __func__);
+               dev_notice(info->dev, "%s: NO edp states defined.\n", __func__);
                return;
        }
 
@@ -674,7 +674,7 @@ static void max77665_f_update_config(struct max77665_f_info *info)
                        memcpy(&pcfg->led_config[i], &pcfg_cust->led_config[i],
                                sizeof(pcfg_cust->led_config[0]));
                else
-                       dev_warn(info->dev,
+                       dev_notice(info->dev,
                                "%s: invalid led config[%d].\n", __func__, i);
        }
 
@@ -814,9 +814,9 @@ static int max77665_f_configure(struct max77665_f_info *info, bool update)
 
        if (pcfg->max_peak_current_mA > max77665_f_caps.max_peak_curr_mA ||
                !pcfg->max_peak_current_mA) {
-               dev_warn(info->dev, "invalid max_peak_current_mA: %d,",
+               dev_notice(info->dev, "invalid max_peak_current_mA: %d,",
                                pcfg->max_peak_current_mA);
-               dev_info(info->dev, " changed to %d\n",
+               dev_notice(info->dev, " changed to %d\n",
                                max77665_f_caps.max_peak_curr_mA);
                pcfg->max_peak_current_mA = max77665_f_caps.max_peak_curr_mA;
        }
@@ -840,9 +840,9 @@ static int max77665_f_configure(struct max77665_f_info *info, bool update)
 
        if (pcfg->max_torch_current_mA > max77665_f_caps.max_torch_curr_mA ||
                !pcfg->max_torch_current_mA) {
-               dev_warn(info->dev, "invalid max_torch_current_mA: %d,",
+               dev_notice(info->dev, "invalid max_torch_current_mA: %d,",
                                pcfg->max_torch_current_mA);
-               dev_info(info->dev, " changed to %d\n",
+               dev_notice(info->dev, " changed to %d\n",
                                max77665_f_caps.max_torch_curr_mA);
                pcfg->max_torch_current_mA =
                        max77665_f_caps.max_torch_curr_mA;
@@ -1577,7 +1577,7 @@ static int max77665_f_probe(struct platform_device *pdev)
                info->pdata = pdev->dev.platform_data;
                dev_dbg(&pdev->dev, "pdata: %s\n", info->pdata->dev_name);
        } else
-               dev_warn(&pdev->dev, "%s NO platform data\n", __func__);
+               dev_notice(&pdev->dev, "%s NO platform data\n", __func__);
 
        max77665_f_caps_layout(info);