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

Commit 6389075e authored by Vince Hsu's avatar Vince Hsu Committed by Mark Brown
Browse files

regulator: as3722: set the correct current limit



Simple fix to set the correct current limit for SD0/1/6.

Signed-off-by: default avatarVince Hsu <vinceh@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Fixes: bc407334 (regulator: as3722: add regulator driver for AMS AS3722)
Cc: stable@vger.kernel.org
parent 6ce4eac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -590,8 +590,8 @@ static int as3722_sd016_set_current_limit(struct regulator_dev *rdev,
	default:
		return -EINVAL;
	}
	ret <<= ffs(mask) - 1;
	val = ret & mask;
	val <<= ffs(mask) - 1;
	return as3722_update_bits(as3722, reg, mask, val);
}