Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge: tc358767: remove tc_connector_best_encoder

drm_connector_helper_funcs.best_encoder is only needed when the
connector can have more than one encoder, and that is never the case
here.

So remove tc_connector_best_encoder.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528082747.3631-20-tomi.valkeinen@ti.com

authored by

Tomi Valkeinen and committed by
Andrzej Hajda
0cdb42f3 4647a64f

-9
-9
drivers/gpu/drm/bridge/tc358767.c
··· 1216 1216 DRM_CONNECTOR_POLL_DISCONNECT; 1217 1217 } 1218 1218 1219 - static struct drm_encoder * 1220 - tc_connector_best_encoder(struct drm_connector *connector) 1221 - { 1222 - struct tc_data *tc = connector_to_tc(connector); 1223 - 1224 - return tc->bridge.encoder; 1225 - } 1226 - 1227 1219 static const struct drm_connector_helper_funcs tc_connector_helper_funcs = { 1228 1220 .get_modes = tc_connector_get_modes, 1229 - .best_encoder = tc_connector_best_encoder, 1230 1221 }; 1231 1222 1232 1223 static const struct drm_connector_funcs tc_connector_funcs = {