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

Commit d4f86c72 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 6fec52c1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1462,6 +1462,9 @@ int dp_display_get_displays(void **displays, int count)

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

	return 1;
}