trats2: fix unused variable warnings made from interactive charger 18/176718/1
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 23 Apr 2018 04:25:26 +0000 (13:25 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 23 Apr 2018 04:31:13 +0000 (13:31 +0900)
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 <jh80.chung@samsung.com>
[sw0312.kim: add missed pbat]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
board/samsung/trats2/trats2.c

index 7a621b6..807dd56 100644 (file)
 
 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);