Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf02d87f authored by Rob Clark's avatar Rob Clark Committed by Dave Airlie
Browse files

drm/udl: use helpers



Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent c7e95114
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -105,14 +105,7 @@ static struct drm_encoder*
udl_best_single_encoder(struct drm_connector *connector)
{
	int enc_id = connector->encoder_ids[0];
	struct drm_mode_object *obj;
	struct drm_encoder *encoder;

	obj = drm_mode_object_find(connector->dev, enc_id, DRM_MODE_OBJECT_ENCODER);
	if (!obj)
		return NULL;
	encoder = obj_to_encoder(obj);
	return encoder;
	return drm_encoder_find(connector->dev, enc_id);
}

static int udl_connector_set_property(struct drm_connector *connector,