Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5af87900 authored by Alan Kwong's avatar Alan Kwong Committed by Narendra Muppalla
Browse files

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: default avatarAlan Kwong <akwong@codeaurora.org>
parent 41b099ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {