From 64f13d6843eaa74e06a9552fbab4f2d6987e0f9f Mon Sep 17 00:00:00 2001 From: litong20 Date: Thu, 25 May 2023 16:27:22 +0800 Subject: [PATCH] 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 Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- drivers/power/cw2217b_fg_mmi/cw2217B_fuel_gauge_base.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/power/cw2217b_fg_mmi/cw2217B_fuel_gauge_base.c b/drivers/power/cw2217b_fg_mmi/cw2217B_fuel_gauge_base.c index 035abbd8e36a..c12469a38465 100644 --- a/drivers/power/cw2217b_fg_mmi/cw2217B_fuel_gauge_base.c +++ b/drivers/power/cw2217b_fg_mmi/cw2217B_fuel_gauge_base.c @@ -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;