max77759_charger: implement resume_complete function
to avoid i2c access before resume complete
Bug: 213648509
Signed-off-by: Wasb Liu <[email protected]>
Change-Id: I32b7ff620ae38f11ce5bef70a554f29863fe0d8c
diff --git a/max77759_charger.h b/max77759_charger.h
index d8849cb..2e2682f 100644
--- a/max77759_charger.h
+++ b/max77759_charger.h
@@ -22,6 +22,7 @@
struct gvotable_election *mode_votable;
struct max77759_usecase_data uc_data;
+ struct delayed_work mode_rerun_work;
struct gvotable_election *dc_icl_votable;
struct gvotable_election *dc_suspend_votable;
@@ -32,6 +33,8 @@
bool thm2_sts;
int irq_gpio;
+ int irq_int;
+ bool irq_disabled;
struct i2c_client *fg_i2c_client;
struct i2c_client *pmic_i2c_client;