diff options
| author | David Collins <collinsd@codeaurora.org> | 2016-11-11 14:55:29 -0800 |
|---|---|---|
| committer | David Collins <collinsd@codeaurora.org> | 2016-12-16 13:38:15 -0800 |
| commit | aefa7dcc3d428b3368ba759b82cd43e602fd80f1 (patch) | |
| tree | 6e051a62dcda7a141bd0fc1c17cb53d96d222866 | |
| parent | 3162449f7d245d45f007d4ea3224576ddf1bcc63 (diff) | |
regulator: cpr3-regulator: correct sdelta table indexing
Correct the index calculation used when printing the sdelta
adjustment table.
Change-Id: Ieaf46199f2b440206fd3442d614cf97f3f3728ea
CRs-Fixed: 1089098
Signed-off-by: David Collins <collinsd@codeaurora.org>
| -rw-r--r-- | drivers/regulator/cpr3-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/cpr3-util.c b/drivers/regulator/cpr3-util.c index 60fe825ca013..9fb349a1c3c7 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); } |
