diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2014-12-02 17:51:36 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2015-03-31 11:59:34 +0200 |
commit | a7c6e76feeb19de1a5cefa50ea6c0fc5ad45bbe1 (patch) | |
tree | 347d8ffa3959f23cf55ab06773feff0b36fd8975 /drivers/gpu/drm/imx/dw_hdmi-imx.c | |
parent | 203508ef52e3fee93b71262928541ecea82c735d (diff) | |
download | linux-stable-a7c6e76feeb19de1a5cefa50ea6c0fc5ad45bbe1.tar.gz linux-stable-a7c6e76feeb19de1a5cefa50ea6c0fc5ad45bbe1.tar.bz2 linux-stable-a7c6e76feeb19de1a5cefa50ea6c0fc5ad45bbe1.zip |
drm/imx: switch to use media bus formats
imx-drm internally misused the V4L2_PIX_FMT constants, which are supposed to
describe the pixel format of frame buffers in memory, to describe the pixel
format on the bus between the display controller and the encoder hardware.
Now that MEDIA_BUS_FMT constants are available to drm drivers, use those
instead.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Emil Renner Berthing <kernel@esmil.dk>
Diffstat (limited to 'drivers/gpu/drm/imx/dw_hdmi-imx.c')
-rw-r--r-- | drivers/gpu/drm/imx/dw_hdmi-imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/dw_hdmi-imx.c b/drivers/gpu/drm/imx/dw_hdmi-imx.c index 87fe8ed92ebe..61ef987ec37b 100644 --- a/drivers/gpu/drm/imx/dw_hdmi-imx.c +++ b/drivers/gpu/drm/imx/dw_hdmi-imx.c @@ -123,7 +123,7 @@ static void dw_hdmi_imx_encoder_commit(struct drm_encoder *encoder) static void dw_hdmi_imx_encoder_prepare(struct drm_encoder *encoder) { - imx_drm_panel_format(encoder, V4L2_PIX_FMT_RGB24); + imx_drm_panel_format(encoder, MEDIA_BUS_FMT_RGB888_1X24); } static struct drm_encoder_helper_funcs dw_hdmi_imx_encoder_helper_funcs = { |