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

Commit ed104fad authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: qpnp-smbcharger: Read the hi-power property



Read the hi-power power-supply property in the
get_property callback to avoid warnings from the
power-supply framework.

Change-Id: I5a9bb9b625ceb308afab915db9ac784a567ffbfb
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent bcd2fce8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2705,6 +2705,9 @@ static int fg_power_get_property(struct power_supply *psy,
	case POWER_SUPPLY_PROP_CHARGE_NOW_RAW:
		val->intval = get_sram_prop_now(chip, FG_DATA_CC_CHARGE);
		break;
	case POWER_SUPPLY_PROP_HI_POWER:
		val->intval = !!chip->bcl_lpm_disabled;
		break;
	default:
		return -EINVAL;
	}