google_battery: update ce_data.ce_health when relevant conditions change

Bug: 341550407
Change-Id: I58b14f983cff0ea8e693c5551f99876927d3885d
Signed-off-by: Jenny Ho <[email protected]>
(cherry picked from commit a328eeebd8024d1d869d6b8ad93ef50a30f2cde2)
diff --git a/google_battery.c b/google_battery.c
index b239e11..09a3a39 100644
--- a/google_battery.c
+++ b/google_battery.c
@@ -3581,7 +3581,8 @@
 
 done_no_op:
 	/* send a power supply event when rest_state changes */
-	changed = rest->rest_state != rest_state;
+	changed = rest->rest_state != rest_state ||
+		  rest->rest_cc_max != cc_max || rest->rest_fv_uv != fv_uv;
 
 	/* msc_logic_* will vote on cc_max and fv_uv. */
 	rest->rest_cc_max = cc_max;