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

Commit 143b89ba authored by Naseer Ahmed's avatar Naseer Ahmed Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Avoid incorrect status while parsing dsi topology



When parsing topology dtsi struct the return value gets set while
checking for qcom,split-mode. When this node and DSC construct
are not present, the rc value gets set as INVALID incorrectly.
This change prevents that scenario.

Change-Id: Id358e0d46ca5eacc75c5e7ff0064ff67f1b7e356
Signed-off-by: default avatarNaseer Ahmed <naseer@codeaurora.org>
Signed-off-by: default avatarRashi Bindra <rbindra@codeaurora.org>
parent fc5a098f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1570,8 +1570,9 @@ static int mdss_dsi_parse_topology_config(struct device_node *np,
				goto end;
			}
		}
		rc = of_property_read_string(cfg_np, "qcom,split-mode", &data);
		if (!rc && !strcmp(data, "pingpong-split"))

		if (!of_property_read_string(cfg_np, "qcom,split-mode",
		    &data) && !strcmp(data, "pingpong-split"))
			pinfo->use_pingpong_split = true;

		if (((timing->lm_widths[0]) || (timing->lm_widths[1])) &&