From 6abc42a33e1ed5254374ff1d9b2a4a7c71012dd6 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 23 Apr 2018 13:25:26 +0900 Subject: [PATCH] trats2: fix unused variable warnings made from interactive charger There are unused variable build warnings made from interactive charger after rebasing. Note: When doing rebase, this patch should be squashed into fixed commit. Change-Id: I3f21899e8c8f349c2ea3d6d341af88b05814198e Fixes: 5bf0f4c22486 ("trats2: add support to interactive charger") Signed-off-by: Jaehoon Chung [sw0312.kim: add missed pbat] Signed-off-by: Seung-Woo Kim --- board/samsung/trats2/trats2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/samsung/trats2/trats2.c b/board/samsung/trats2/trats2.c index 7a621b6..807dd56 100644 --- a/board/samsung/trats2/trats2.c +++ b/board/samsung/trats2/trats2.c @@ -29,10 +29,12 @@ DECLARE_GLOBAL_DATA_PTR; +#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ /* For global battery and charger functions */ static struct power_battery *pbat; static struct pmic *p_chrg, *p_muic, *p_fg, *p_bat; static int power_init_done; +#endif static unsigned int board_rev = -1; static inline u32 get_model_rev(void); -- 2.7.4