mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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: Lipsa Rout <lrout@codeaurora.org>
This commit is contained in:
parent
fa97229906
commit
298cb1459b
1 changed files with 4 additions and 2 deletions
|
|
@ -5847,7 +5847,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++;
|
||||
}
|
||||
|
||||
|
|
@ -5866,7 +5867,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue