drm/hibmc: Drop best_encoder
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 21 Feb 2019 15:58:56 +0000 (16:58 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 25 Mar 2019 08:33:41 +0000 (09:33 +0100)
This is the default for atomic drivers.

Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190221155857.19773-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c

index d2cf7317930a50f7986008baf70790f88e0cf50f..8c2f9b9cafb3a101286dbe6fd52f5e52c711fe93 100644 (file)
@@ -33,17 +33,10 @@ static enum drm_mode_status hibmc_connector_mode_valid(struct drm_connector *con
        return MODE_OK;
 }
 
-static struct drm_encoder *
-hibmc_connector_best_encoder(struct drm_connector *connector)
-{
-       return drm_encoder_find(connector->dev, NULL, connector->encoder_ids[0]);
-}
-
 static const struct drm_connector_helper_funcs
        hibmc_connector_helper_funcs = {
        .get_modes = hibmc_connector_get_modes,
        .mode_valid = hibmc_connector_mode_valid,
-       .best_encoder = hibmc_connector_best_encoder,
 };
 
 static const struct drm_connector_funcs hibmc_connector_funcs = {