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

Commit 01250a7f authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen4: Add encoding function for FULL_SOC for PM8150B v2



fg_gen4_configure_full_soc() needs to encode battery SOC for
configuring full SOC, which is missing for PM8150B v2 FG SRAM.
Fix it.

Change-Id: I5be5d2bc7baf9631f374acda5a9e3a5fd76f6609
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent b79ef96c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -351,8 +351,8 @@ static struct fg_sram_param pm8150b_v1_sram_params[] = {
static struct fg_sram_param pm8150b_v2_sram_params[] = {
	PARAM(BATT_SOC, BATT_SOC_v2_WORD, BATT_SOC_v2_OFFSET, 4, 1, 1, 0, NULL,
		fg_decode_default),
	PARAM(FULL_SOC, FULL_SOC_v2_WORD, FULL_SOC_v2_OFFSET, 2, 1, 1, 0, NULL,
		fg_decode_default),
	PARAM(FULL_SOC, FULL_SOC_v2_WORD, FULL_SOC_v2_OFFSET, 2, 1, 1, 0,
		fg_encode_default, fg_decode_default),
	PARAM(MONOTONIC_SOC, MONOTONIC_SOC_v2_WORD, MONOTONIC_SOC_v2_OFFSET, 2,
		1, 1, 0, NULL, fg_decode_default),
	PARAM(VOLTAGE_PRED, VOLTAGE_PRED_v2_WORD, VOLTAGE_PRED_v2_OFFSET, 2,