]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: rcar-csi2: Move Y8 entry to a better place
authorTomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Mon, 20 Jan 2025 13:10:34 +0000 (15:10 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 4 Mar 2025 12:35:33 +0000 (13:35 +0100)
Move the Y8 entry before Y10, so that the entries are in a bit more
logical order.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/renesas/rcar-csi2.c

index 0a53dd47d7bf24e07b416c0b0dfd9cfa70462529..be930ebca3f5628b9a361ab0a5d04af14a708d63 100644 (file)
@@ -636,6 +636,10 @@ static const struct rcar_csi2_format rcar_csi2_formats[] = {
                .code = MEDIA_BUS_FMT_YUYV10_2X10,
                .datatype = MIPI_CSI2_DT_YUV422_8B,
                .bpp = 20,
+       }, {
+               .code = MEDIA_BUS_FMT_Y8_1X8,
+               .datatype = MIPI_CSI2_DT_RAW8,
+               .bpp = 8,
        }, {
                .code = MEDIA_BUS_FMT_Y10_1X10,
                .datatype = MIPI_CSI2_DT_RAW10,
@@ -656,10 +660,6 @@ static const struct rcar_csi2_format rcar_csi2_formats[] = {
                .code = MEDIA_BUS_FMT_SRGGB8_1X8,
                .datatype = MIPI_CSI2_DT_RAW8,
                .bpp = 8,
-       }, {
-               .code = MEDIA_BUS_FMT_Y8_1X8,
-               .datatype = MIPI_CSI2_DT_RAW8,
-               .bpp = 8,
        },
 };