lkml.org 
[lkml]   [2022]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 38/41] drm/sun4i: tv: Remove useless destroy function
    Date
    Our destroy implementation is just calling the generic helper, so let's
    just remove our function and directly use the helper.

    Signed-off-by: Maxime Ripard <maxime@cerno.tech>
    Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>

    diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c
    index 52bbba8f19dc..6d7e1d51569a 100644
    --- a/drivers/gpu/drm/sun4i/sun4i_tv.c
    +++ b/drivers/gpu/drm/sun4i/sun4i_tv.c
    @@ -491,15 +491,9 @@ static const struct drm_connector_helper_funcs sun4i_tv_comp_connector_helper_fu
    .get_modes = sun4i_tv_comp_get_modes,
    };

    -static void
    -sun4i_tv_comp_connector_destroy(struct drm_connector *connector)
    -{
    - drm_connector_cleanup(connector);
    -}
    -
    static const struct drm_connector_funcs sun4i_tv_comp_connector_funcs = {
    .fill_modes = drm_helper_probe_single_connector_modes,
    - .destroy = sun4i_tv_comp_connector_destroy,
    + .destroy = drm_connector_cleanup,
    .reset = drm_atomic_helper_connector_reset,
    .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
    .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
    --
    b4 0.10.0-dev-65ba7

    \
     
     \ /
      Last update: 2022-08-29 15:20    [W:3.781 / U:0.488 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site