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

Commit 96a424f0 authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

regulator: cpr4: Fix highest voltage corner open-loop voltage calculation



Open-loop voltage is not being calculated for the highest corner.
Fix the code to calculate highest corner open-loop voltage.

Change-Id: I81dd522498f538cd713c9972c2d473fba3e79274
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent a660e4d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -367,7 +367,7 @@ static int cpr4_msmtitanium_apss_calculate_open_loop_voltages(
		vreg->corner[i].open_loop_volt = fuse_volt[0];

	/* Interpolate voltages for the higher fuse corners. */
	for (i = 1; i < vreg->fuse_corner_count - 1; i++) {
	for (i = 1; i < vreg->fuse_corner_count; i++) {
		freq_low = vreg->corner[fmax_corner[i - 1]].proc_freq;
		volt_low = fuse_volt[i - 1];
		freq_high = vreg->corner[fmax_corner[i]].proc_freq;