drm/exynos: Make exynos_drm_panel_info array of panels
authorShirish S <s.shirish@samsung.com>
Fri, 6 Jul 2012 09:20:31 +0000 (14:50 +0530)
committerGerrit <chrome-bot@google.com>
Thu, 19 Jul 2012 22:53:40 +0000 (15:53 -0700)
This patch adds macro for max number of panels and
modifies exynos_drm_panel_info as an array of maximum
number of panels.

BUG=chrome-os-partner:10851
TEST=used xrandr tool to switch LCD display resolution
     between 1366x768 and 1280x720 on daisy.

Signed-off-by: Shirish S <s.shirish@samsung.com>
Change-Id: Ia634ddbf470515082d561e2487ed3e009764c4a8
Reviewed-on: https://gerrit.chromium.org/gerrit/26847
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Commit-Ready: Shirish S <s.shirish@samsung.com>
Tested-by: Shirish S <s.shirish@samsung.com>
include/drm/exynos_drm.h

index 6a07d9d..cf93238 100644 (file)
@@ -124,6 +124,8 @@ enum e_drm_exynos_gem_mem_type {
 
 #ifdef __KERNEL__
 
+/* FIMD Panels. */
+#define MAX_NR_PANELS  5
 /**
  * A structure for lcd panel information.
  *
@@ -150,7 +152,7 @@ enum disp_panel_type {
  * @bpp: default bit per pixel.
  */
 struct exynos_drm_fimd_pdata {
-       struct exynos_drm_panel_info panel;
+       struct exynos_drm_panel_info panel[MAX_NR_PANELS];
        u32                             vidcon0;
        u32                             vidcon1;
        unsigned int                    default_win;