mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 21:40:54 +07:00
drm/rcar-du: Use simple encoder
The rcar-du driver uses an empty implementation for its encoder. Replace the code with the generic simple encoder. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200305155950.2705-12-tzimmermann@suse.de
This commit is contained in:
parent
b534c4f550
commit
f9b21bde1a
@ -13,6 +13,7 @@
|
||||
#include <drm/drm_crtc.h>
|
||||
#include <drm/drm_modeset_helper_vtables.h>
|
||||
#include <drm/drm_panel.h>
|
||||
#include <drm/drm_simple_kms_helper.h>
|
||||
|
||||
#include "rcar_du_drv.h"
|
||||
#include "rcar_du_encoder.h"
|
||||
@ -23,13 +24,6 @@
|
||||
* Encoder
|
||||
*/
|
||||
|
||||
static const struct drm_encoder_helper_funcs encoder_helper_funcs = {
|
||||
};
|
||||
|
||||
static const struct drm_encoder_funcs encoder_funcs = {
|
||||
.destroy = drm_encoder_cleanup,
|
||||
};
|
||||
|
||||
static unsigned int rcar_du_encoder_count_ports(struct device_node *node)
|
||||
{
|
||||
struct device_node *ports;
|
||||
@ -110,13 +104,11 @@ int rcar_du_encoder_init(struct rcar_du_device *rcdu,
|
||||
}
|
||||
}
|
||||
|
||||
ret = drm_encoder_init(rcdu->ddev, encoder, &encoder_funcs,
|
||||
DRM_MODE_ENCODER_NONE, NULL);
|
||||
ret = drm_simple_encoder_init(rcdu->ddev, encoder,
|
||||
DRM_MODE_ENCODER_NONE);
|
||||
if (ret < 0)
|
||||
goto done;
|
||||
|
||||
drm_encoder_helper_add(encoder, &encoder_helper_funcs);
|
||||
|
||||
/*
|
||||
* Attach the bridge to the encoder. The bridge will create the
|
||||
* connector.
|
||||
|
Loading…
Reference in New Issue
Block a user