max77759: change external booster FCCM mode at high battery voltage

Checking the vbatt voltage every 30 seconds to enable/disable FCCM

Bug: 205270843
Test: otg plug in/out
Change-Id: Ifbe01a15153c527eb491fa656a456e5b3d11dbd2
Signed-off-by: Ted Lin <[email protected]>
diff --git a/max77759_charger.h b/max77759_charger.h
index 2e2682f..4b838e1 100644
--- a/max77759_charger.h
+++ b/max77759_charger.h
@@ -55,6 +55,15 @@
 	bool online;
 	bool wden;
 
+	/* Force to change FCCM mode during OTG at high battery voltage */
+	bool otg_changed;
+	bool otg_fccm_reset;
+	int otg_fccm_vbatt_lowerbd;
+	int otg_fccm_vbatt_upperbd;
+	struct alarm otg_fccm_alarm;
+	struct delayed_work otg_fccm_worker;
+	struct wakeup_source *otg_fccm_wake_lock;
+
 	/* debug interface, register to read or write */
 	u32 debug_reg_address;