mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
drm: fsl-dcu: 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: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1465300095-16971-6-git-send-email-boris.brezillon@free-electrons.com
This commit is contained in:
parent
1487a81941
commit
75e8c46174
1 changed files with 0 additions and 9 deletions
|
@ -102,14 +102,6 @@ static const struct drm_connector_funcs fsl_dcu_drm_connector_funcs = {
|
|||
.reset = drm_atomic_helper_connector_reset,
|
||||
};
|
||||
|
||||
static struct drm_encoder *
|
||||
fsl_dcu_drm_connector_best_encoder(struct drm_connector *connector)
|
||||
{
|
||||
struct fsl_dcu_drm_connector *fsl_con = to_fsl_dcu_connector(connector);
|
||||
|
||||
return fsl_con->encoder;
|
||||
}
|
||||
|
||||
static int fsl_dcu_drm_connector_get_modes(struct drm_connector *connector)
|
||||
{
|
||||
struct fsl_dcu_drm_connector *fsl_connector;
|
||||
|
@ -136,7 +128,6 @@ static int fsl_dcu_drm_connector_mode_valid(struct drm_connector *connector,
|
|||
}
|
||||
|
||||
static const struct drm_connector_helper_funcs connector_helper_funcs = {
|
||||
.best_encoder = fsl_dcu_drm_connector_best_encoder,
|
||||
.get_modes = fsl_dcu_drm_connector_get_modes,
|
||||
.mode_valid = fsl_dcu_drm_connector_mode_valid,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue