drm/exynos: dsi: remove redundant encoder field
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 7 Oct 2014 12:01:10 +0000 (14:01 +0200)
committerInki Dae <inki.dae@samsung.com>
Mon, 24 Nov 2014 09:02:50 +0000 (18:02 +0900)
The patch removes redundant encoder field from private DSI context.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dsi.c

index 926682c7af279179fd4406af23be60e7b7fb69cd..c9d1a00971f14aa78759a0d99db763d961fafc1a 100644 (file)
@@ -271,7 +271,6 @@ struct exynos_dsi {
        struct exynos_drm_display display;
        struct mipi_dsi_host dsi_host;
        struct drm_connector connector;
-       struct drm_encoder *encoder;
        struct device_node *panel_node;
        struct drm_panel *panel;
        struct device *dev;
@@ -1105,7 +1104,7 @@ static irqreturn_t exynos_dsi_irq(int irq, void *dev_id)
 static irqreturn_t exynos_dsi_te_irq_handler(int irq, void *dev_id)
 {
        struct exynos_dsi *dsi = (struct exynos_dsi *)dev_id;
-       struct drm_encoder *encoder = dsi->encoder;
+       struct drm_encoder *encoder = dsi->display.encoder;
 
        if (dsi->state & DSIM_STATE_ENABLED)
                exynos_drm_crtc_te_handler(encoder->crtc);
@@ -1475,7 +1474,7 @@ exynos_dsi_best_encoder(struct drm_connector *connector)
 {
        struct exynos_dsi *dsi = connector_to_dsi(connector);
 
-       return dsi->encoder;
+       return dsi->display.encoder;
 }
 
 static struct drm_connector_helper_funcs exynos_dsi_connector_helper_funcs = {
@@ -1491,8 +1490,6 @@ static int exynos_dsi_create_connector(struct exynos_drm_display *display,
        struct drm_connector *connector = &dsi->connector;
        int ret;
 
-       dsi->encoder = encoder;
-
        connector->polled = DRM_CONNECTOR_POLL_HPD;
 
        ret = drm_connector_init(encoder->dev, connector,