Skip to contentSkip to conversation

media: sun6i-csi: bridge: Remove duplicate mbus format entries

PATCH In review Arash Golgol 2 participants 3 messages May 27 – Jul 11

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: sun6i-csi: bridge: Remove duplicate mbus format entries

The driver reports MEDIA_BUS_FMT_UYVY8_2X8 and MEDIA_BUS_FMT_UYVY8_1X16 twice when enumerating supported media bus codes.

Remove the duplicated entries from sun6i_csi_bridge_formats[].

---
 .../platform/sunxi/sun6i-csi/sun6i_csi_bridge.c      | 12 ------------
 1 file changed, 12 deletions(-)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c +0 -12
index d006d9dd0170..0bec0cd7620e 100644
@@ -113,12 +113,6 @@ static const struct sun6i_csi_bridge_format sun6i_csi_bridge_formats[] = {
 		.input_yuv_seq		= SUN6I_CSI_INPUT_YUV_SEQ_YVYU,
 		.input_yuv_seq_invert	= SUN6I_CSI_INPUT_YUV_SEQ_YUYV,
 	},
-	{
-		.mbus_code		= MEDIA_BUS_FMT_UYVY8_2X8,
-		.input_format		= SUN6I_CSI_INPUT_FMT_YUV422,
-		.input_yuv_seq		= SUN6I_CSI_INPUT_YUV_SEQ_UYVY,
-		.input_yuv_seq_invert	= SUN6I_CSI_INPUT_YUV_SEQ_VYUY,
-	},
 	{
 		.mbus_code		= MEDIA_BUS_FMT_VYUY8_2X8,
 		.input_format		= SUN6I_CSI_INPUT_FMT_YUV422,
@@ -143,12 +137,6 @@ static const struct sun6i_csi_bridge_format sun6i_csi_bridge_formats[] = {
 		.input_yuv_seq		= SUN6I_CSI_INPUT_YUV_SEQ_YVYU,
 		.input_yuv_seq_invert	= SUN6I_CSI_INPUT_YUV_SEQ_YUYV,
 	},
-	{
-		.mbus_code		= MEDIA_BUS_FMT_UYVY8_1X16,
-		.input_format		= SUN6I_CSI_INPUT_FMT_YUV422,
-		.input_yuv_seq		= SUN6I_CSI_INPUT_YUV_SEQ_UYVY,
-		.input_yuv_seq_invert	= SUN6I_CSI_INPUT_YUV_SEQ_VYUY,
-	},
 	{
 		.mbus_code		= MEDIA_BUS_FMT_VYUY8_1X16,
 		.input_format		= SUN6I_CSI_INPUT_FMT_YUV422,
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi Arash,

Quoted 5 lines · Arash Golgol

The driver reports MEDIA_BUS_FMT_UYVY8_2X8 and MEDIA_BUS_FMT_UYVY8_1X16 twice when enumerating supported media bus codes.

Remove the duplicated entries from sun6i_csi_bridge_formats[].

Looks good to me, thanks for taking care of this!

Quoted 1 line

All the best,

Paul

Quoted 37 lines
---
 .../platform/sunxi/sun6i-csi/sun6i_csi_bridge.c      | 12 ------------
 1 file changed, 12 deletions(-)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c +0 -12
index d006d9dd0170..0bec0cd7620e 100644
@@ -113,12 +113,6 @@ static const struct sun6i_csi_bridge_format sun6i_csi_bridge_formats[] = {
 		.input_yuv_seq		= SUN6I_CSI_INPUT_YUV_SEQ_YVYU,
 		.input_yuv_seq_invert	= SUN6I_CSI_INPUT_YUV_SEQ_YUYV,
 	},
-	{
-		.mbus_code		= MEDIA_BUS_FMT_UYVY8_2X8,
-		.input_format		= SUN6I_CSI_INPUT_FMT_YUV422,
-		.input_yuv_seq		= SUN6I_CSI_INPUT_YUV_SEQ_UYVY,
-		.input_yuv_seq_invert	= SUN6I_CSI_INPUT_YUV_SEQ_VYUY,
-	},
 	{
 		.mbus_code		= MEDIA_BUS_FMT_VYUY8_2X8,
 		.input_format		= SUN6I_CSI_INPUT_FMT_YUV422,
@@ -143,12 +137,6 @@ static const struct sun6i_csi_bridge_format sun6i_csi_bridge_formats[] = {
 		.input_yuv_seq		= SUN6I_CSI_INPUT_YUV_SEQ_YVYU,
 		.input_yuv_seq_invert	= SUN6I_CSI_INPUT_YUV_SEQ_YUYV,
 	},
-	{
-		.mbus_code		= MEDIA_BUS_FMT_UYVY8_1X16,
-		.input_format		= SUN6I_CSI_INPUT_FMT_YUV422,
-		.input_yuv_seq		= SUN6I_CSI_INPUT_YUV_SEQ_UYVY,
-		.input_yuv_seq_invert	= SUN6I_CSI_INPUT_YUV_SEQ_VYUY,
-	},
 	{
 		.mbus_code		= MEDIA_BUS_FMT_VYUY8_1X16,
 		.input_format		= SUN6I_CSI_INPUT_FMT_YUV422,
Signature · 1 line
2.34.1
Signature · 6 lines
Paul Kocialkowski,

Independent contractor - sys-base - https://www.sys-base.io/
Free software developer - https://www.paulk.fr/

Expert in multimedia, graphics and embedded hardware support with Linux.
#2 lore raw

Hi,

Quoted 8 lines · Paul Kocialkowski

Hi Arash,

Quoted 4 lines · Arash Golgol

The driver reports MEDIA_BUS_FMT_UYVY8_2X8 and MEDIA_BUS_FMT_UYVY8_1X16 twice when enumerating supported media bus codes.

Quoted 7 lines
Quoted 1 line

Remove the duplicated entries from sun6i_csi_bridge_formats[].

Looks good to me, thanks for taking care of this!

Quoted 1 line

I'd like to gently follow up on this patch.

Quoted 49 lines

All the best,

Paul

Quoted 35 lines
---
 .../platform/sunxi/sun6i-csi/sun6i_csi_bridge.c      | 12 ------------
 1 file changed, 12 deletions(-)
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c +0 -13
index d006d9dd0170..0bec0cd7620e 100644
@@ -113,12 +113,6 @@ static const struct sun6i_csi_bridge_format sun6i_csi_bridge_formats[] = {
              .input_yuv_seq          = SUN6I_CSI_INPUT_YUV_SEQ_YVYU,
              .input_yuv_seq_invert   = SUN6I_CSI_INPUT_YUV_SEQ_YUYV,
      },
-     {
-             .mbus_code              = MEDIA_BUS_FMT_UYVY8_2X8,
-             .input_format           = SUN6I_CSI_INPUT_FMT_YUV422,
-             .input_yuv_seq          = SUN6I_CSI_INPUT_YUV_SEQ_UYVY,
-             .input_yuv_seq_invert   = SUN6I_CSI_INPUT_YUV_SEQ_VYUY,
-     },
      {
              .mbus_code              = MEDIA_BUS_FMT_VYUY8_2X8,
              .input_format           = SUN6I_CSI_INPUT_FMT_YUV422,
@@ -143,12 +137,6 @@ static const struct sun6i_csi_bridge_format sun6i_csi_bridge_formats[] = {
              .input_yuv_seq          = SUN6I_CSI_INPUT_YUV_SEQ_YVYU,
              .input_yuv_seq_invert   = SUN6I_CSI_INPUT_YUV_SEQ_YUYV,
      },
-     {
-             .mbus_code              = MEDIA_BUS_FMT_UYVY8_1X16,
-             .input_format           = SUN6I_CSI_INPUT_FMT_YUV422,
-             .input_yuv_seq          = SUN6I_CSI_INPUT_YUV_SEQ_UYVY,
-             .input_yuv_seq_invert   = SUN6I_CSI_INPUT_YUV_SEQ_VYUY,
-     },
      {
              .mbus_code              = MEDIA_BUS_FMT_VYUY8_1X16,
              .input_format           = SUN6I_CSI_INPUT_FMT_YUV422,
--
Quoted 2 lines

2.34.1

--
Paul Kocialkowski,

Independent contractor - sys-base - https://www.sys-base.io/
Free software developer - https://www.paulk.fr/

Expert in multimedia, graphics and embedded hardware support with Linux.

Signature · 2 lines
Regards,
Arash Golgol