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>
This commit is contained in:
parent
3162449f7d
commit
aefa7dcc3d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue