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

Commit 05638fb4 authored by Lipsa Rout's avatar Lipsa Rout
Browse files

disp: msm: dsi: Fix num of displays for firmware approach



Currently, in firmware approach, the panel node is null
for secondary display. As a result, the number of display
remains one, in case of dual display also. This change
updates the number of displays.

Change-Id: I4b945b8b94d931e0dedf7ca7b27cb1a288b9d6ab
Signed-off-by: default avatarLipsa Rout <lrout@codeaurora.org>
parent eb12ef5c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -5476,7 +5476,8 @@ int dsi_display_get_num_of_displays(void)
	for (i = 0; i < MAX_DSI_ACTIVE_DISPLAY; i++) {
		struct dsi_display *display = boot_displays[i].disp;

		if (display && display->panel_node)
		if ((display && display->panel_node) ||
					(display && display->fw))
			count++;
	}

@@ -5495,7 +5496,8 @@ int dsi_display_get_active_displays(void **display_array, u32 max_display_count)
	for (index = 0; index < MAX_DSI_ACTIVE_DISPLAY; index++) {
		struct dsi_display *display = boot_displays[index].disp;

		if (display && display->panel_node)
		if ((display && display->panel_node) ||
					(display && display->fw))
			display_array[count++] = display;
	}