summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-01-18 23:48:46 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-18 23:48:45 -0800
commite12c25b9a5e4e09a731eeb9018eb6c0bb0b5b7b3 (patch)
treee7824423077e8372c0369f29cfd61eb14f92d4cd
parent1515754ed3753f4060c4a773499fe949ec1e5738 (diff)
parentaefa7dcc3d428b3368ba759b82cd43e602fd80f1 (diff)
Merge "regulator: cpr3-regulator: correct sdelta table indexing"
-rw-r--r--drivers/regulator/cpr3-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/cpr3-util.c b/drivers/regulator/cpr3-util.c
index 120ca69e100f..7f712d4f6ee4 100644
--- a/drivers/regulator/cpr3-util.c
+++ b/drivers/regulator/cpr3-util.c
@@ -1851,7 +1851,7 @@ static int cpr4_load_core_and_temp_adj(struct cpr3_regulator *vreg,
for (i = 0; i < sdelta->max_core_count; i++) {
for (j = 0, pos = 0; j < sdelta->temp_band_count; j++)
pos += scnprintf(buf + pos, buflen - pos, " %u",
- sdelta->table[i * sdelta->max_core_count + j]);
+ sdelta->table[i * sdelta->temp_band_count + j]);
cpr3_debug(vreg, "sdelta[%d]:%s\n", i, buf);
}