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);
}
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;
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,
}
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);
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;
}
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);
}
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;
}
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;
}
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;
}
}
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;
}
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;
}
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;
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);
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;
}
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);
}
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;
}
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;
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);