From 253e76eb23001a3f0db9595d01bb33d345270bde Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 21 Feb 2022 11:07:45 +0800 Subject: [PATCH] charging: fixed build error fixed build errror Change-Id: I1f89173d4ca4e63824868970cd238c62d3a18bbe Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2195220 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/power/bq2589x_chg_mmi/bq2589x_charger.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/bq2589x_chg_mmi/bq2589x_charger.c b/drivers/power/bq2589x_chg_mmi/bq2589x_charger.c index 6f7a87ec942c..9122bf11a9ec 100644 --- a/drivers/power/bq2589x_chg_mmi/bq2589x_charger.c +++ b/drivers/power/bq2589x_chg_mmi/bq2589x_charger.c @@ -1830,6 +1830,7 @@ static int mmi_detected_qc30_hvdcp(struct bq2589x *bq, int *charger_type) return ret; } +#ifdef CONFIG_MMI_QC3P_TURBO_CHARGER static int bq2589x_detected_qc3p_hvdcp(struct bq2589x *bq, int *charger_type) { int ret = 0; @@ -1940,6 +1941,7 @@ static int bq2589x_detected_qc3p_hvdcp(struct bq2589x *bq, int *charger_type) return ret; } #endif +#endif #ifdef CONFIG_MMI_QC3P_WT6670_DETECTED bool is_chan_valid(struct bq2589x *chip,