Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos: remove struct exynos_drm_panel_info

struct exynos_drm_panel_info is not used anymore, except exynos_dp,
which can integrate useful fields directly into its context.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Andrzej Hajda and committed by
Inki Dae
27d60e3d 1feafd3a

+4 -24
-1
drivers/gpu/drm/exynos/exynos7_drm_decon.c
··· 60 60 wait_queue_head_t wait_vsync_queue; 61 61 atomic_t wait_vsync_event; 62 62 63 - struct exynos_drm_panel_info panel; 64 63 struct drm_encoder *encoder; 65 64 }; 66 65
+2 -5
drivers/gpu/drm/exynos/exynos_dp_core.c
··· 977 977 return 0; 978 978 } 979 979 980 - drm_display_mode_from_videomode(&dp->priv.vm, mode); 981 - mode->width_mm = dp->priv.width_mm; 982 - mode->height_mm = dp->priv.height_mm; 980 + drm_display_mode_from_videomode(&dp->vm, mode); 983 981 connector->display_info.width_mm = mode->width_mm; 984 982 connector->display_info.height_mm = mode->height_mm; 985 983 ··· 1239 1241 { 1240 1242 int ret; 1241 1243 1242 - ret = of_get_videomode(dp->dev->of_node, &dp->priv.vm, 1243 - OF_USE_NATIVE_MODE); 1244 + ret = of_get_videomode(dp->dev->of_node, &dp->vm, OF_USE_NATIVE_MODE); 1244 1245 if (ret) { 1245 1246 DRM_ERROR("failed: of_get_videomode() : %d\n", ret); 1246 1247 return ret;
+2 -2
drivers/gpu/drm/exynos/exynos_dp_core.h
··· 16 16 #include <drm/drm_crtc.h> 17 17 #include <drm/drm_dp_helper.h> 18 18 #include <drm/exynos_drm.h> 19 + #include <video/videomode.h> 19 20 20 21 #include "exynos_drm_drv.h" 21 22 ··· 165 164 struct phy *phy; 166 165 int dpms_mode; 167 166 int hpd_gpio; 168 - 169 - struct exynos_drm_panel_info priv; 167 + struct videomode vm; 170 168 }; 171 169 172 170 /* exynos_dp_reg.c */
-1
drivers/gpu/drm/exynos/exynos_drm_fimd.c
··· 182 182 atomic_t win_updated; 183 183 atomic_t triggering; 184 184 185 - struct exynos_drm_panel_info panel; 186 185 struct fimd_driver_data *driver_data; 187 186 struct drm_encoder *encoder; 188 187 };
-15
include/drm/exynos_drm.h
··· 18 18 #include <video/videomode.h> 19 19 20 20 /** 21 - * A structure for lcd panel information. 22 - * 23 - * @timing: default video mode for initializing 24 - * @width_mm: physical size of lcd width. 25 - * @height_mm: physical size of lcd height. 26 - */ 27 - struct exynos_drm_panel_info { 28 - struct videomode vm; 29 - u32 width_mm; 30 - u32 height_mm; 31 - }; 32 - 33 - /** 34 21 * Platform Specific Structure for DRM based FIMD. 35 22 * 36 - * @panel: default panel info for initializing 37 23 * @default_win: default window layer number to be used for UI. 38 24 * @bpp: default bit per pixel. 39 25 */ 40 26 struct exynos_drm_fimd_pdata { 41 - struct exynos_drm_panel_info panel; 42 27 u32 vidcon0; 43 28 u32 vidcon1; 44 29 unsigned int default_win;