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

Commit c9c6f2fb authored by Wu Fenglin's avatar Wu Fenglin
Browse files

of: batterydata: fix a typo on flat-ocv-threshold-uv property reading



This typo cause flat_ocv_threshold_uv value can't be read correctly,
and make adjust_soc() assign a wrong value to correction_limit_uv in
bms driver.

Change-Id: Ifc00c63070281e3adfafd3f10559f2660644af90
Signed-off-by: default avatarWu Fenglin <fenglinw@codeaurora.org>
parent 76ccdc74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ static int of_batterydata_load_battery_data(struct device_node *node,
	OF_PROP_READ(batt_data->rbatt_capacitive_mohm,
			"rbatt-capacitive-mohm", node, rc, false);
	OF_PROP_READ(batt_data->flat_ocv_threshold_uv,
			"flat-ocv-threshold", node, rc, true);
			"flat-ocv-threshold-uv", node, rc, true);
	OF_PROP_READ(batt_data->max_voltage_uv,
			"max-voltage-uv", node, rc, true);
	OF_PROP_READ(batt_data->cutoff_uv, "v-cutoff-uv", node, rc, true);