Skip to content

Commit 7ecd34e

Browse files
Joonyoung Shimdaeinki
authored andcommitted
drm/exynos: cleanup for hdmi platform data
The exynos_drm_hdmi_pdata struct have owned unnessary members. Remove them and add a function pointer to configure hdmi hotplug detection pin. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent 40cd7e0 commit 7ecd34e

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

‎drivers/gpu/drm/exynos/exynos_hdmi.c‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,9 @@ struct hdmi_resources {
5757
struct hdmi_context {
5858
struct device *dev;
5959
struct drm_device *drm_dev;
60-
struct fb_videomode *default_timing;
61-
unsigned int is_v13:1;
62-
unsigned int default_win;
63-
unsigned int default_bpp;
6460
bool hpd_handle;
6561
bool enabled;
62+
bool is_v13;
6663

6764
struct resource *regs_res;
6865
void __iomem *regs;
@@ -78,6 +75,9 @@ struct hdmi_context {
7875

7976
struct hdmi_resources res;
8077
void *parent_ctx;
78+
79+
void (*cfg_hpd)(bool external);
80+
int (*get_hpd)(void);
8181
};
8282

8383
/* HDMI Version 1.3 */
@@ -2243,9 +2243,8 @@ static int __devinit hdmi_probe(struct platform_device *pdev)
22432243
platform_set_drvdata(pdev, drm_hdmi_ctx);
22442244

22452245
hdata->is_v13 = pdata->is_v13;
2246-
hdata->default_win = pdata->default_win;
2247-
hdata->default_timing = &pdata->timing;
2248-
hdata->default_bpp = pdata->bpp;
2246+
hdata->cfg_hpd = pdata->cfg_hpd;
2247+
hdata->get_hpd = pdata->get_hpd;
22492248
hdata->dev = dev;
22502249

22512250
ret = hdmi_resources_init(hdata);

‎include/drm/exynos_drm.h‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,14 @@ struct exynos_drm_common_hdmi_pd {
197197
/**
198198
* Platform Specific Structure for DRM based HDMI core.
199199
*
200-
* @timing: default video mode for initializing
201-
* @default_win: default window layer number to be used for UI.
202-
* @bpp: default bit per pixel.
203200
* @is_v13: set if hdmi version 13 is.
201+
* @cfg_hpd: function pointer to configure hdmi hotplug detection pin
202+
* @get_hpd: function pointer to get value of hdmi hotplug detection pin
204203
*/
205204
struct exynos_drm_hdmi_pdata {
206-
struct fb_videomode timing;
207-
unsigned int default_win;
208-
unsigned int bpp;
209-
unsigned int is_v13:1;
205+
bool is_v13;
206+
void (*cfg_hpd)(bool external);
207+
int (*get_hpd)(void);
210208
};
211209

212210
#endif /* __KERNEL__ */

0 commit comments

Comments
 (0)