drm/omap: remove unused ovl_enabled()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 17 Feb 2017 10:20:16 +0000 (12:20 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:12 +0000 (10:57 +0300)
ovl_enabled() is not used anywhere, so remove it.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/dss/dispc.c
drivers/gpu/drm/omapdrm/dss/omapdss.h

index 4d5b77f9797c807f7d1ce5f0db68ea26ed13f8c5..198d41056447f5b2eeb364ac8f7159faa618498f 100644 (file)
@@ -2935,11 +2935,6 @@ static int dispc_ovl_enable(enum omap_plane_id plane, bool enable)
        return 0;
 }
 
-static bool dispc_ovl_enabled(enum omap_plane_id plane)
-{
-       return REG_GET(DISPC_OVL_ATTRIBUTES(plane), 0, 0);
-}
-
 static enum omap_dss_output_id dispc_mgr_get_supported_outputs(enum omap_channel channel)
 {
        return dss_feat_get_supported_outputs(channel);
@@ -4377,7 +4372,6 @@ static const struct dispc_ops dispc_ops = {
        .mgr_set_gamma = dispc_mgr_set_gamma,
 
        .ovl_enable = dispc_ovl_enable,
-       .ovl_enabled = dispc_ovl_enabled,
        .ovl_set_channel_out = dispc_ovl_set_channel_out,
        .ovl_setup = dispc_ovl_setup,
        .ovl_get_color_modes = dispc_ovl_get_color_modes,
index 3bee528380cdcfbede25c1661db9333c16057a75..0df19bac56cfc9cf822aad041e377b159cc0f5a4 100644 (file)
@@ -912,7 +912,6 @@ struct dispc_ops {
                unsigned int length);
 
        int (*ovl_enable)(enum omap_plane_id plane, bool enable);
-       bool (*ovl_enabled)(enum omap_plane_id plane);
        void (*ovl_set_channel_out)(enum omap_plane_id plane,
                        enum omap_channel channel);
        int (*ovl_setup)(enum omap_plane_id plane,