Commit eefcf834 authored by Boris Brezillon's avatar Boris Brezillon Committed by Daniel Vetter

drm: mediatek: Rely on the default ->best_encoder() behavior

We have a 1:1 relationship between connectors and encoders and the
driver is relying on the atomic helpers: we can drop the custom
->best_encoder() implementation and let the core call
drm_atomic_helper_best_encoder() for us.
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465300095-16971-8-git-send-email-boris.brezillon@free-electrons.com
parent d14d2a84
...@@ -575,14 +575,6 @@ static int mtk_dsi_connector_get_modes(struct drm_connector *connector) ...@@ -575,14 +575,6 @@ static int mtk_dsi_connector_get_modes(struct drm_connector *connector)
return drm_panel_get_modes(dsi->panel); return drm_panel_get_modes(dsi->panel);
} }
static struct drm_encoder *mtk_dsi_connector_best_encoder(
struct drm_connector *connector)
{
struct mtk_dsi *dsi = connector_to_dsi(connector);
return &dsi->encoder;
}
static const struct drm_encoder_helper_funcs mtk_dsi_encoder_helper_funcs = { static const struct drm_encoder_helper_funcs mtk_dsi_encoder_helper_funcs = {
.mode_fixup = mtk_dsi_encoder_mode_fixup, .mode_fixup = mtk_dsi_encoder_mode_fixup,
.mode_set = mtk_dsi_encoder_mode_set, .mode_set = mtk_dsi_encoder_mode_set,
...@@ -603,7 +595,6 @@ static const struct drm_connector_funcs mtk_dsi_connector_funcs = { ...@@ -603,7 +595,6 @@ static const struct drm_connector_funcs mtk_dsi_connector_funcs = {
static const struct drm_connector_helper_funcs static const struct drm_connector_helper_funcs
mtk_dsi_connector_helper_funcs = { mtk_dsi_connector_helper_funcs = {
.get_modes = mtk_dsi_connector_get_modes, .get_modes = mtk_dsi_connector_get_modes,
.best_encoder = mtk_dsi_connector_best_encoder,
}; };
static int mtk_drm_attach_bridge(struct drm_bridge *bridge, static int mtk_drm_attach_bridge(struct drm_bridge *bridge,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment