From 4c5a64b2aca7595d976e764ca7585adc5929b5e2 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 7 Jan 2022 17:56:29 +0800 Subject: [PATCH] charging: fixed 15W product build error fixed 15W product build error Signed-off-by: mahj8 Change-Id: I020a10375e04de6193756de89df175bff86bc011 Reviewed-on: https://gerrit.mot.com/2164862 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c b/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c index 158a20f5bbba..7f369204a700 100644 --- a/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c +++ b/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c @@ -1448,6 +1448,7 @@ static int sgm4154x_detected_qc30_hvdcp(struct sgm4154x_device *sgm, int *charge return ret; } +#ifdef CONFIG_MMI_QC3P_TURBO_CHARGER static int sgm4154x_detected_qc3p_hvdcp(struct sgm4154x_device *sgm, int *charger_type) { int ret = 0; @@ -1557,6 +1558,7 @@ static int sgm4154x_detected_qc3p_hvdcp(struct sgm4154x_device *sgm, int *charge return ret; } #endif +#endif #ifdef CONFIG_MMI_QC3P_WT6670_DETECTED bool is_chan_valid(struct sgm4154x_device *chip,