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

Commit 0577b6d7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-smbcharger: fix the argument order while using is_between()"

parents 4c6d8951 1174ee1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1842,8 +1842,8 @@ static struct ilim_entry *smbchg_wipower_find_entry(struct smbchg_chip *chip,
	struct ilim_entry *ret = &(chip->wipower_default.entries[0]);

	for (i = 0; i < map->num; i++) {
		if (is_between(uv,
			map->entries[i].vmin_uv, map->entries[i].vmax_uv))
		if (is_between(map->entries[i].vmin_uv, map->entries[i].vmax_uv,
			uv))
			ret = &map->entries[i];
	}
	return ret;