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

Commit 8ee824bd authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: initialize fb split values during fb probe



Initialize fb split left/right to 0 during fb probe, as there
might be cases where these variables are not updated at all.
Based on these variables the split_mode is set, which might
lead to wrong assumption if these holds garbage values.

CRs-fixed: 971626
Change-Id: Ic5d28ce4ab5792c1be4a71b00e6b50aba9083230
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 9b27daa5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1085,6 +1085,7 @@ static int mdss_fb_probe(struct platform_device *pdev)


	mfd->pdev = pdev;
	mfd->pdev = pdev;


	mfd->split_fb_left = mfd->split_fb_right = 0;
	mfd->split_mode = MDP_SPLIT_MODE_NONE;
	mfd->split_mode = MDP_SPLIT_MODE_NONE;
	if (pdata->panel_info.is_split_display) {
	if (pdata->panel_info.is_split_display) {
		struct mdss_panel_data *pnext = pdata->next;
		struct mdss_panel_data *pnext = pdata->next;