]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: cadence: cdns-csi2tx: Use mipi-csi2.h
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 23 Jan 2022 15:58:17 +0000 (16:58 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:20 +0000 (11:02 +0200)
Replace the hardcoded MIPI CSI-2 data types with macros from
mipi-csi2.h.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/cadence/cdns-csi2tx.c

index 8f8c36056354caafdccb073f803dad7626f2042b..58e405b69f67b3b54b4b23f98cc44ef1ca2fca98 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
+#include <media/mipi-csi2.h>
 #include <media/v4l2-ctrls.h>
 #include <media/v4l2-device.h>
 #include <media/v4l2-fwnode.h>
@@ -121,12 +122,12 @@ static const struct csi2tx_fmt csi2tx_formats[] = {
        {
                .mbus   = MEDIA_BUS_FMT_UYVY8_1X16,
                .bpp    = 2,
-               .dt     = 0x1e,
+               .dt     = MIPI_CSI2_DT_YUV422_8B,
        },
        {
                .mbus   = MEDIA_BUS_FMT_RGB888_1X24,
                .bpp    = 3,
-               .dt     = 0x24,
+               .dt     = MIPI_CSI2_DT_RGB888,
        },
 };