Commit f87c445c authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: cadence: cdns-csi2tx: Use mipi-csi2.h

Replace the hardcoded MIPI CSI-2 data types with macros from
mipi-csi2.h.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent fa145137
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <media/mipi-csi2.h>
#include <media/v4l2-ctrls.h> #include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/v4l2-fwnode.h> #include <media/v4l2-fwnode.h>
...@@ -121,12 +122,12 @@ static const struct csi2tx_fmt csi2tx_formats[] = { ...@@ -121,12 +122,12 @@ static const struct csi2tx_fmt csi2tx_formats[] = {
{ {
.mbus = MEDIA_BUS_FMT_UYVY8_1X16, .mbus = MEDIA_BUS_FMT_UYVY8_1X16,
.bpp = 2, .bpp = 2,
.dt = 0x1e, .dt = MIPI_CSI2_DT_YUV422_8B,
}, },
{ {
.mbus = MEDIA_BUS_FMT_RGB888_1X24, .mbus = MEDIA_BUS_FMT_RGB888_1X24,
.bpp = 3, .bpp = 3,
.dt = 0x24, .dt = MIPI_CSI2_DT_RGB888,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment