Skip to contentSkip to conversation

staging: media: imx: fix function call formatting

PATCH In review [email protected] 2 participants 2 messages Oct 6 – Oct 12

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

PATCH 1/1 staging: media: imx: fix function call formatting

From: Palak Raval <[email protected]>

Move the first argument of IMX_BUS_FMTS() to the same line as the opening parenthesis to address the checkpatch warning.

---
 drivers/staging/media/imx/imx-media-utils.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/imx/imx-media-utils.c +1 -2
index f119477cac6b..978770cf3907 100644
@@ -16,8 +16,7 @@ static const struct imx_media_pixfmt pixel_formats[] = {
 	/*** YUV formats start here ***/
 	{
 		.fourcc	= V4L2_PIX_FMT_UYVY,
-		.codes  = IMX_BUS_FMTS(
-			MEDIA_BUS_FMT_UYVY8_2X8,
+		.codes  = IMX_BUS_FMTS(MEDIA_BUS_FMT_UYVY8_2X8,
 			MEDIA_BUS_FMT_UYVY8_1X16
 		),
 		.cs     = IPUV3_COLORSPACE_YUV,
Signature · 1 line
2.43.0
#1 lore raw
Quoted 15 lines · On Tue, Oct 06, 2026 at 12:22:00PM +0530, [email protected] wrote:

From: Palak Raval <[email protected]>

Move the first argument of IMX_BUS_FMTS() to the same line as the opening parenthesis to address the checkpatch warning.

---
 drivers/staging/media/imx/imx-media-utils.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/imx/imx-media-utils.c +0 -0
index f119477cac6b..978770cf3907 100644

drivers/staging/media/imx/imx-media-utils.c static const struct imx_media_pixfmt pixel_formats[] = { · line 20

Quoted 7 lines
drivers/staging/media/imx/imx-media-utils.c +1 -2
@@ -16,8 +16,7 @@ static const struct imx_media_pixfmt pixel_formats[] = {
 	/*** YUV formats start here ***/
 	{
 		.fourcc	= V4L2_PIX_FMT_UYVY,
-		.codes  = IMX_BUS_FMTS(
-			MEDIA_BUS_FMT_UYVY8_2X8,
+		.codes  = IMX_BUS_FMTS(MEDIA_BUS_FMT_UYVY8_2X8,
 			MEDIA_BUS_FMT_UYVY8_1X16

It does not help much.

prefer format:
IMX_BUS_FMTS(MEDIA_BUS_FMT_UYVY8_2X8,

	     MEDIA_BUS_FMT_UYVY8_1X16),

I suggest help contribute more meanful change, such as move out stage.

Frank

Quoted 5 lines
drivers/staging/media/imx/imx-media-utils.c +0 -1
 		),
 		.cs     = IPUV3_COLORSPACE_YUV,
--

2.43.0