mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge "disp: msm: dsi: Fix num of displays for firmware approach"
This commit is contained in:
commit
95955d984a
1 changed files with 4 additions and 2 deletions
|
|
@ -5858,7 +5858,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++;
|
||||
}
|
||||
|
||||
|
|
@ -5877,7 +5878,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