Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Laurent Pinchart and committed by
Mauro Carvalho Chehab
f87c445c fa145137

+3 -2
+3 -2
drivers/media/platform/cadence/cdns-csi2tx.c
··· 15 15 #include <linux/platform_device.h> 16 16 #include <linux/slab.h> 17 17 18 + #include <media/mipi-csi2.h> 18 19 #include <media/v4l2-ctrls.h> 19 20 #include <media/v4l2-device.h> 20 21 #include <media/v4l2-fwnode.h> ··· 122 121 { 123 122 .mbus = MEDIA_BUS_FMT_UYVY8_1X16, 124 123 .bpp = 2, 125 - .dt = 0x1e, 124 + .dt = MIPI_CSI2_DT_YUV422_8B, 126 125 }, 127 126 { 128 127 .mbus = MEDIA_BUS_FMT_RGB888_1X24, 129 128 .bpp = 3, 130 - .dt = 0x24, 129 + .dt = MIPI_CSI2_DT_RGB888, 131 130 }, 132 131 }; 133 132