public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Chen Shi <shichen01@baidu.com>
To: <slongerbeam@gmail.com>, <p.zabel@pengutronix.de>
Cc: <linux-media@vger.kernel.org>, <linux-staging@lists.linux.dev>,
	Chen Shi <shichen01@baidu.com>
Subject: [PATCH] media: staging: media: imx: imx7-media-utils: Fix a coding style problem
Date: Thu, 4 Aug 2022 15:10:46 +0800	[thread overview]
Message-ID: <20220804071046.31520-1-shichen01@baidu.com> (raw)

Add parentheses to enclose macros with complex values.

Signed-off-by: Chen Shi <shichen01@baidu.com>
---
 drivers/staging/media/imx/imx-media-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/imx/imx-media-utils.c b/drivers/staging/media/imx/imx-media-utils.c
index 294c808b2ebe..c94013175181 100644
--- a/drivers/staging/media/imx/imx-media-utils.c
+++ b/drivers/staging/media/imx/imx-media-utils.c
@@ -7,7 +7,7 @@
 #include <linux/module.h>
 #include "imx-media.h"
 
-#define IMX_BUS_FMTS(fmt...) (const u32[]) {fmt, 0}
+#define IMX_BUS_FMTS(fmt...) {(const u32[]) {fmt, 0}}
 
 /*
  * List of supported pixel formats for the subdevs.
-- 
2.17.1


             reply	other threads:[~2022-08-04  7:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-04  7:10 Chen Shi [this message]
2022-08-04  8:23 ` [PATCH] media: staging: media: imx: imx7-media-utils: Fix a coding style problem Greg KH
2022-08-04  8:46 ` Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220804071046.31520-1-shichen01@baidu.com \
    --to=shichen01@baidu.com \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=p.zabel@pengutronix.de \
    --cc=slongerbeam@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox