summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOsvaldo Banuelos <osvaldob@codeaurora.org>2016-04-07 16:21:13 -0700
committerBryan Huntsman <bryanh@codeaurora.org>2016-04-12 15:49:49 -0700
commitc413bcb70acf3c6ae11924d286c99c078d905c82 (patch)
treee2f6a6efd45968d0a058c93f7bd4d9973080fca8
parent8bc5414b74bd1021711390dc23a266e41007e7e8 (diff)
regulator: cprh-kbss-regulator: fix interpolation for highest fuse corner
Currently, open-loop voltage interpolation is skipped for corners mapping to the highest fused corner thus resulting in incorrect open-loop voltages when open-loop interpolation is enabled. Fix this. Change-Id: Iab5a2dadfec45efb08b9c45f956e9f102d2d2c55 CRs-Fixed: 1001350 Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
-rw-r--r--drivers/regulator/cprh-kbss-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/cprh-kbss-regulator.c b/drivers/regulator/cprh-kbss-regulator.c
index 1e516fe9865e..01a385cbc5d0 100644
--- a/drivers/regulator/cprh-kbss-regulator.c
+++ b/drivers/regulator/cprh-kbss-regulator.c
@@ -433,7 +433,7 @@ static int cprh_msmcobalt_kbss_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;