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

Commit 3905746c authored by Sankeerth Billakanti's avatar Sankeerth Billakanti Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dp: return number of displays as 0 if dp node is disabled



When DP node is disabled in the DT file, dp driver is returning
incorrect number of displays connected

Change-Id: I94655ee40cb3785f8186f0eef5f88d3ec4020b09
Signed-off-by: default avatarSankeerth Billakanti <sbillaka@codeaurora.org>
parent dd9acb7d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2058,6 +2058,9 @@ int dp_display_get_displays(void **displays, int count)


int dp_display_get_num_of_displays(void)
int dp_display_get_num_of_displays(void)
{
{
	if (!g_dp_display)
		return 0;

	return 1;
	return 1;
}
}