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

Commit babb0d03 authored by Tirupathi Reddy's avatar Tirupathi Reddy Committed by Gerrit - the friendly Code Review server
Browse files

regulator: qpnp-regulator: Fix uninitialized variable compiler error



Initialize voltage variables in order to avoid strict compiler errors.

Change-Id: Ia4b081479b839b2e5ea56a7f22bc71a645a3bf8d
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 8ca03863
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -797,7 +797,7 @@ static int qpnp_regulator_common_set_voltage(struct regulator_dev *rdev,
		int min_uV, int max_uV, unsigned *selector)
{
	struct qpnp_regulator *vreg = rdev_get_drvdata(rdev);
	int rc, range_sel, voltage_sel, voltage_old, voltage_new;
	int rc, range_sel, voltage_sel, voltage_old = 0, voltage_new = 0;
	u8 buf[2];

	if (vreg->slew_rate && vreg->rdesc.ops->get_voltage) {