From 69576bbb34e98d7ba245216356334c996dacc949 Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 28 Apr 2022 09:23:10 +0800 Subject: [PATCH] wls_chg: remove check chip id function For original usage, function check_chip_id is used to decide whether FW need to be upgraded. But we have change it by FW version checking. So this function will not used any more. We should remove it. Change-Id: Idbf875a8491f8321755c56f9b8cc5f2310409214 Reviewed-on: https://gerrit.mot.com/2255040 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- .../power/cps4019_wls_charger/cps4019_wls_charger.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/power/cps4019_wls_charger/cps4019_wls_charger.c b/drivers/power/cps4019_wls_charger/cps4019_wls_charger.c index 087c95418da1..b918574e1677 100644 --- a/drivers/power/cps4019_wls_charger/cps4019_wls_charger.c +++ b/drivers/power/cps4019_wls_charger/cps4019_wls_charger.c @@ -418,16 +418,6 @@ static int cps_wls_program_wait_cmd_done(void) return CPS_WLS_SUCCESS; } -static bool cps_check_chip_id(void) -{ - int id = cps_wls_get_chip_id(); - - cps_wls_log(CPS_LOG_DEBG, "[%s] chip id 0x%x\n", __func__, id); - - return ((id == CPS4019_CHIP_ID) || (id == -1)) ? TRUE : FALSE; -} -*/ - static bool cps_check_fw_ver(void) { int fw_major, fw_minor;