diff options
| author | Alan Kwong <akwong@codeaurora.org> | 2016-10-12 17:01:42 -0400 |
|---|---|---|
| committer | Alan Kwong <akwong@codeaurora.org> | 2016-10-24 19:38:59 -0400 |
| commit | 195dc24301d3416d985dec212700868952b2d021 (patch) | |
| tree | c09b6cba611bee57b2aee85bfe989a2f664e14a5 /drivers/gpu | |
| parent | 488a0a5aaeb6eb1f74538d7b0b241b84d7c3177c (diff) | |
drm/msm/sde: correct read out of bit offset array
The parser for bit offset is writing bit and offset to
the wrong property location. Correct the parser to write
to the first 2 locations of the property value array.
Change-Id: Ic087c4ce55a2b2e9276db0cc953bc226939f3249
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/msm/sde/sde_hw_catalog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_hw_catalog.c b/drivers/gpu/drm/msm/sde/sde_hw_catalog.c index 41b55ca09502..3ac161f86680 100644 --- a/drivers/gpu/drm/msm/sde/sde_hw_catalog.c +++ b/drivers/gpu/drm/msm/sde/sde_hw_catalog.c @@ -323,9 +323,9 @@ static int _parse_dt_bit_offset(struct device_node *np, if (arr) { len /= sizeof(u32); for (i = 0, j = 0; i < len; j++) { - prop_value[j][i] = be32_to_cpu(arr[i]); + prop_value[j][0] = be32_to_cpu(arr[i]); i++; - prop_value[j][i] = be32_to_cpu(arr[i]); + prop_value[j][1] = be32_to_cpu(arr[i]); i++; } } else { |
