提交 6f7ff54c 编写于 作者: B Boris Brezillon 提交者: Daniel Vetter

drm/bridge: anx78xx: 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(),
and let the core call drm_atomic_helper_best_encoder() for us.
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465300095-16971-18-git-send-email-boris.brezillon@free-electrons.com
上级 d9991f45
......@@ -986,16 +986,8 @@ static int anx78xx_get_modes(struct drm_connector *connector)
return num_modes;
}
static struct drm_encoder *anx78xx_best_encoder(struct drm_connector *connector)
{
struct anx78xx *anx78xx = connector_to_anx78xx(connector);
return anx78xx->bridge.encoder;
}
static const struct drm_connector_helper_funcs anx78xx_connector_helper_funcs = {
.get_modes = anx78xx_get_modes,
.best_encoder = anx78xx_best_encoder,
};
static enum drm_connector_status anx78xx_detect(struct drm_connector *connector,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册