]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/bridge: ti-sn65dsi86: Get rid of the useless detect() function
authorDouglas Anderson <dianders@chromium.org>
Fri, 16 Apr 2021 22:39:29 +0000 (15:39 -0700)
committerDouglas Anderson <dianders@chromium.org>
Tue, 20 Apr 2021 15:58:36 +0000 (08:58 -0700)
If we just leave the detect() function as NULL then the upper layers
assume we're always connected. There's no reason for a stub.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210416153909.v4.6.I826adf4faeb7f39f560b387f6b380e639c6986c8@changeid
drivers/gpu/drm/bridge/ti-sn65dsi86.c

index e30460002c4884b5e7c60e70e6b9567411a897d5..51db30d573c11900956a129ac9f32536d8d4e720 100644 (file)
@@ -306,20 +306,8 @@ static struct drm_connector_helper_funcs ti_sn_bridge_connector_helper_funcs = {
        .mode_valid = ti_sn_bridge_connector_mode_valid,
 };
 
-static enum drm_connector_status
-ti_sn_bridge_connector_detect(struct drm_connector *connector, bool force)
-{
-       /**
-        * TODO: Currently if drm_panel is present, then always
-        * return the status as connected. Need to add support to detect
-        * device state for hot pluggable scenarios.
-        */
-       return connector_status_connected;
-}
-
 static const struct drm_connector_funcs ti_sn_bridge_connector_funcs = {
        .fill_modes = drm_helper_probe_single_connector_modes,
-       .detect = ti_sn_bridge_connector_detect,
        .destroy = drm_connector_cleanup,
        .reset = drm_atomic_helper_connector_reset,
        .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,