mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
drm/udl: use helpers
Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
c7e951147d
commit
bf02d87fa4
1 changed files with 1 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue