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

Commit 552e9ea2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: mdp: fix parsing total number of displays"

parents 0f793d31 54ba41b1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/*
 * MDSS MDP Interface (used by framebuffer core)
 *
 * Copyright (c) 2007-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2007-2019, The Linux Foundation. All rights reserved.
 * Copyright (C) 2007 Google Incorporated
 *
 * This software is licensed under the terms of the GNU General Public
@@ -3117,7 +3117,8 @@ static int mdss_mdp_probe(struct platform_device *pdev)
		MDSS_MDP_REG_SPLIT_DISPLAY_EN);
	if (intf_sel != 0) {
		for (i = 0; i < 4; i++)
			num_of_display_on += ((intf_sel >> i*8) & 0x000000FF);
			num_of_display_on +=
				(((intf_sel >> i*8) & 0x000000FF) ? 1 : 0);

		/*
		 * For split display enabled - DSI0, DSI1 interfaces are