Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af2c4534 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-fg: print the battery id upon profile load



If the FG_STATUS debug mask is defined, print the battery id when
battery profile is being loaded in order to debug issues with incorrect
battery id.

Change-Id: Ia78a26b4f28df0c29120895584b2045f31e0a407
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 2b1e1d83
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4108,6 +4108,9 @@ wait:
		goto no_profile;
	}

	if (fg_debug_mask & FG_STATUS)
		pr_info("battery id = %d\n",
				get_sram_prop_now(chip, FG_DATA_BATT_ID));
	profile_node = of_batterydata_get_best_profile(batt_node, "bms",
							fg_batt_type);
	if (!profile_node) {