]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/armada: armada_output: Remove some unused functions
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Fri, 2 Jan 2015 20:55:02 +0000 (21:55 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 26 Jan 2015 16:23:32 +0000 (16:23 +0000)
Removes some functions that are not used anywhere:
armada_drm_encoder_mode_fixup() armada_drm_encoder_commit() armada_drm_encoder_prepare()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/armada/armada_output.c
drivers/gpu/drm/armada/armada_output.h

index abbc309fe539e9d917464980b344e30ed3a1d58f..5a9823178291f13bb7bad1cd0aaf5e14d8c4f28d 100644 (file)
@@ -72,22 +72,6 @@ static const struct drm_connector_funcs armada_drm_conn_funcs = {
        .set_property   = armada_drm_connector_set_property,
 };
 
-void armada_drm_encoder_prepare(struct drm_encoder *encoder)
-{
-       encoder_helper_funcs(encoder)->dpms(encoder, DRM_MODE_DPMS_OFF);
-}
-
-void armada_drm_encoder_commit(struct drm_encoder *encoder)
-{
-       encoder_helper_funcs(encoder)->dpms(encoder, DRM_MODE_DPMS_ON);
-}
-
-bool armada_drm_encoder_mode_fixup(struct drm_encoder *encoder,
-       const struct drm_display_mode *mode, struct drm_display_mode *adjusted)
-{
-       return true;
-}
-
 /* Shouldn't this be a generic helper function? */
 int armada_drm_slave_encoder_mode_valid(struct drm_connector *conn,
        struct drm_display_mode *mode)
index 4126d43b5057a0a8b7d17a9eeb97f46b820bc63e..d3a6ce79d0945ae1085e62d3fbcaca6590b04879 100644 (file)
@@ -21,12 +21,6 @@ struct armada_output_type {
 
 struct drm_encoder *armada_drm_connector_encoder(struct drm_connector *conn);
 
-void armada_drm_encoder_prepare(struct drm_encoder *encoder);
-void armada_drm_encoder_commit(struct drm_encoder *encoder);
-
-bool armada_drm_encoder_mode_fixup(struct drm_encoder *encoder,
-       const struct drm_display_mode *mode, struct drm_display_mode *adj);
-
 int armada_drm_slave_encoder_mode_valid(struct drm_connector *conn,
        struct drm_display_mode *mode);