diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2016-10-07 17:39:21 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2017-04-04 17:04:04 +0300 |
commit | 381ddfe478871588af95548aaecb6698009c3d6b (patch) | |
tree | e68364041a6f034466abd7d309d79e54802f9450 /drivers/gpu/drm/rcar-du/rcar_du_encoder.h | |
parent | 5c602531feb3db3926cdd76dda89314f0634c9e7 (diff) | |
download | linux-stable-381ddfe478871588af95548aaecb6698009c3d6b.tar.gz linux-stable-381ddfe478871588af95548aaecb6698009c3d6b.tar.bz2 linux-stable-381ddfe478871588af95548aaecb6698009c3d6b.zip |
drm: rcar-du: Hardcode encoders types to DRM_MODE_ENCODER_NONE
Unlike the connector type, the encoder type is unused by userspace. As
it is equally unused in the driver, except in a single location where
the connector type can be used instead, hardcode it to
DRM_MODE_ENCODER_NONE. This allow removing all code that tries to
determine (unsuccessfully in case a bridge is used) the encoder type.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du/rcar_du_encoder.h')
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_encoder.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_encoder.h b/drivers/gpu/drm/rcar-du/rcar_du_encoder.h index c1cfbe0d54ce..5422fa4df272 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_encoder.h +++ b/drivers/gpu/drm/rcar-du/rcar_du_encoder.h @@ -21,14 +21,6 @@ struct drm_panel; struct rcar_du_device; struct rcar_du_lvdsenc; -enum rcar_du_encoder_type { - RCAR_DU_ENCODER_UNUSED = 0, - RCAR_DU_ENCODER_NONE, - RCAR_DU_ENCODER_VGA, - RCAR_DU_ENCODER_LVDS, - RCAR_DU_ENCODER_HDMI, -}; - struct rcar_du_encoder { struct drm_encoder base; enum rcar_du_output output; @@ -51,7 +43,6 @@ struct rcar_du_connector { container_of(c, struct rcar_du_connector, connector) int rcar_du_encoder_init(struct rcar_du_device *rcdu, - enum rcar_du_encoder_type type, enum rcar_du_output output, struct device_node *enc_node, struct device_node *con_node); |