summaryrefslogtreecommitdiffstats
path: root/drivers/staging/imx-drm/imx-ldb.c
diff options
context:
space:
mode:
authorRussell King2013-11-03 16:52:16 +0100
committerRussell King2014-02-24 13:04:08 +0100
commitf2d66aad1aade34df678177c5ccb58feaea72156 (patch)
tree6cece0b40fea6e3ee06595bb929fe8af5cde72b3 /drivers/staging/imx-drm/imx-ldb.c
parentimx-drm: provide common connector mode validation function (diff)
downloadkernel-qcow2-linux-f2d66aad1aade34df678177c5ccb58feaea72156.tar.gz
kernel-qcow2-linux-f2d66aad1aade34df678177c5ccb58feaea72156.tar.xz
kernel-qcow2-linux-f2d66aad1aade34df678177c5ccb58feaea72156.zip
imx-drm: simplify setup of panel format
The encoder format passed into imx_drm_crtc_panel_format*() is the encoder format used for DRM in most cases; the HDMI encoder sets this to none, but this is incorrect, it should be TMDS. Since this is the case, we can pass the drm_encoder structure directly into this function and use the supplied fields there to configure the CRTC. Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/staging/imx-drm/imx-ldb.c')
-rw-r--r--drivers/staging/imx-drm/imx-ldb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/imx-drm/imx-ldb.c b/drivers/staging/imx-drm/imx-ldb.c
index c6ec1e9e95cc..dd29a4aad376 100644
--- a/drivers/staging/imx-drm/imx-ldb.c
+++ b/drivers/staging/imx-drm/imx-ldb.c
@@ -200,8 +200,7 @@ static void imx_ldb_encoder_prepare(struct drm_encoder *encoder)
pixel_fmt = V4L2_PIX_FMT_RGB24;
}
- imx_drm_crtc_panel_format(encoder->crtc, DRM_MODE_ENCODER_LVDS,
- pixel_fmt);
+ imx_drm_panel_format(encoder, pixel_fmt);
}
static void imx_ldb_encoder_commit(struct drm_encoder *encoder)