google_bms: initial cccm_limits before update charge table

GBMS_CCCM_LIMITS will be re-write if call gbms_init_chg_table
more than one time, that causes wrong charging table. Read
device tree default node back to make sure it calculate with
correct base data.

Bug: 205900551
Signed-off-by: Jenny Ho <[email protected]>
Change-Id: I32612de1db09e37511fb0510309be3ce9a1fa99f
diff --git a/google_bms.h b/google_bms.h
index 5b3119f..05d21bb 100644
--- a/google_bms.h
+++ b/google_bms.h
@@ -360,7 +360,8 @@
 #define gbms_init_chg_profile(p, n) \
 	gbms_init_chg_profile_internal(p, n, KBUILD_MODNAME)
 
-void gbms_init_chg_table(struct gbms_chg_profile *profile, u32 capacity);
+void gbms_init_chg_table(struct gbms_chg_profile *profile,
+			 struct device_node *node, u32 capacity);
 
 void gbms_free_chg_profile(struct gbms_chg_profile *profile);