Reduce 'cw2217b_fg_mmi.ko' boot log printed.

cw2217b:
Reduce 'cw2217b_fg_mmi.ko' log printed to improve ko loading time

Change-Id: Ideb3b4c1edae893429b2e5c6c964f96cfb3bc49d
Reviewed-on: https://gerrit.mot.com/2620316
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong20 2023-05-25 16:27:22 +08:00 • committed by litong
commit 64f13d6843

View file

@ -792,9 +792,11 @@ static int cw2217_get_state(struct cw_battery *cw_bat)
if (ret < 0)
return ret;
reg_profile = REG_BAT_PROFILE + i;
cw_printk("0x%2x = 0x%2x\n", reg_profile, reg_val);
if (config_profile_info[i] != reg_val)
if (config_profile_info[i] != reg_val) {
cw_printk("config profile mismatch, config_profile_info[%d]: 0x%2x, reg_val[0x%2x]: 0x%2x\n",
i, config_profile_info[i], reg_profile, reg_val);
break;
}
}
if ( i != SIZE_OF_PROFILE)
return CW2217_PROFILE_NEED_UPDATE;