Skip to content

Commit c37f42c

Browse files
atseanpauldaeinki
authored andcommitted
drm/exynos: Add create_connector callback
This creates a new display hook called create_connector. The purpose is to allow the display driver to create its own drm_connector instead of using the exynos_drm_connector. This moves things closer to completely removing the exynos_drm_connector abstraction. Signed-off-by: Sean Paul <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent af65c80 commit c37f42c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/gpu/drm/exynos/exynos_drm_core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ static int exynos_drm_create_enc_conn(struct drm_device *dev,
4444
return -EFAULT;
4545
}
4646

47+
if (display->ops->create_connector)
48+
return display->ops->create_connector(display, encoder);
49+
4750
/*
4851
* create and initialize a connector for this sub driver and
4952
* attach the encoder created above to the connector.

drivers/gpu/drm/exynos/exynos_drm_drv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ struct exynos_drm_display;
139139
struct exynos_drm_display_ops {
140140
int (*initialize)(struct exynos_drm_display *display,
141141
struct drm_device *drm_dev);
142+
int (*create_connector)(struct exynos_drm_display *display,
143+
struct drm_encoder *encoder);
142144
void (*remove)(struct exynos_drm_display *display);
143145
bool (*is_connected)(struct exynos_drm_display *display);
144146
void (*get_max_resol)(struct exynos_drm_display *display,

0 commit comments

Comments
 (0)