mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 04:56:46 +07:00
drm: arc: 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> Acked-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1465300095-16971-3-git-send-email-boris.brezillon@free-electrons.com
This commit is contained in:
parent
5c0be3f1bb
commit
da5b9d6b09
@ -46,23 +46,6 @@ static int arcpgu_drm_connector_get_modes(struct drm_connector *connector)
|
|||||||
return sfuncs->get_modes(&slave->base, connector);
|
return sfuncs->get_modes(&slave->base, connector);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct drm_encoder *
|
|
||||||
arcpgu_drm_connector_best_encoder(struct drm_connector *connector)
|
|
||||||
{
|
|
||||||
struct drm_encoder_slave *slave;
|
|
||||||
struct arcpgu_drm_connector *con =
|
|
||||||
container_of(connector, struct arcpgu_drm_connector, connector);
|
|
||||||
|
|
||||||
slave = con->encoder_slave;
|
|
||||||
if (slave == NULL) {
|
|
||||||
dev_err(connector->dev->dev,
|
|
||||||
"connector_best_encoder: cannot find slave encoder for connector\n");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return &slave->base;
|
|
||||||
}
|
|
||||||
|
|
||||||
static enum drm_connector_status
|
static enum drm_connector_status
|
||||||
arcpgu_drm_connector_detect(struct drm_connector *connector, bool force)
|
arcpgu_drm_connector_detect(struct drm_connector *connector, bool force)
|
||||||
{
|
{
|
||||||
@ -97,7 +80,6 @@ static void arcpgu_drm_connector_destroy(struct drm_connector *connector)
|
|||||||
static const struct drm_connector_helper_funcs
|
static const struct drm_connector_helper_funcs
|
||||||
arcpgu_drm_connector_helper_funcs = {
|
arcpgu_drm_connector_helper_funcs = {
|
||||||
.get_modes = arcpgu_drm_connector_get_modes,
|
.get_modes = arcpgu_drm_connector_get_modes,
|
||||||
.best_encoder = arcpgu_drm_connector_best_encoder,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct drm_connector_funcs arcpgu_drm_connector_funcs = {
|
static const struct drm_connector_funcs arcpgu_drm_connector_funcs = {
|
||||||
|
Loading…
Reference in New Issue
Block a user