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

Commit d2af4b28 authored by Naseer Ahmed's avatar Naseer Ahmed
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>
parent ba4fdd98
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1494,8 +1494,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])) &&