msm: kgsl: Correct the number of voltage levels for a rail
In rpmh_arc_cmds(), len got from cmd_db_get_aux_data_len() is
twice the number of voltage levels. Hence, arc->num which
represents voltage levels for a rail, should be evaluated by
traversing arc->val table upto (len >> 1) instead of
len or MAX_GX_LEVELS.
Change-Id: Ide4899aee255ab410a469ee1fdb720f61e54d962
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
Loading
Please register or sign in to comment