summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/output.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-28 15:41:34 +0100
committerThierry Reding <treding@nvidia.com>2015-01-27 10:14:48 +0100
commit6fad8f66d7b5f2194f30c62ac40248e15a5b2af1 (patch)
tree809e3843770b0dbd96c7cfc70b95e311fc332062 /drivers/gpu/drm/tegra/output.c
parent5b901e78b24539f4a1e194e8058f26ab38623c37 (diff)
downloadlinux-6fad8f66d7b5f2194f30c62ac40248e15a5b2af1.tar.bz2
drm/tegra: sor: Demidlayer
Implement encoder and connector within the eDP driver itself using the Tegra output helpers rather than using the Tegra output as midlayer. By doing so one level of indirection is removed and output drivers become more flexible while keeping the majority of the advantages provided by the common output helpers. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/output.c')
-rw-r--r--drivers/gpu/drm/tegra/output.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c
index 81de885226ff..57313e3ac238 100644
--- a/drivers/gpu/drm/tegra/output.c
+++ b/drivers/gpu/drm/tegra/output.c
@@ -271,19 +271,8 @@ int tegra_output_remove(struct tegra_output *output)
int tegra_output_init(struct drm_device *drm, struct tegra_output *output)
{
- int connector, encoder;
-
- switch (output->type) {
- case TEGRA_OUTPUT_EDP:
- connector = DRM_MODE_CONNECTOR_eDP;
- encoder = DRM_MODE_ENCODER_TMDS;
- break;
-
- default:
- connector = DRM_MODE_CONNECTOR_Unknown;
- encoder = DRM_MODE_ENCODER_NONE;
- break;
- }
+ int connector = DRM_MODE_CONNECTOR_Unknown;
+ int encoder = DRM_MODE_ENCODER_NONE;
drm_connector_init(drm, &output->connector, &connector_funcs,
connector);