public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: sunran001@208suo.com
To: mchehab@kernel.org
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] media: dvb: remove spaces before '['
Date: Fri, 14 Jul 2023 16:06:44 +0800	[thread overview]
Message-ID: <ad3e13dcf101ff613c7fc72c99db8dd2@208suo.com> (raw)
In-Reply-To: <20230714080514.14297-1-xujianghui@cdjrlc.com>

Remove spaces to clear checkpatch errors.

ERROR: space prohibited before open square bracket '['

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
  drivers/media/dvb-frontends/tda826x.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/media/dvb-frontends/tda826x.c 
b/drivers/media/dvb-frontends/tda826x.c
index f9703a1dd758..7f17efe17d11 100644
--- a/drivers/media/dvb-frontends/tda826x.c
+++ b/drivers/media/dvb-frontends/tda826x.c
@@ -38,7 +38,7 @@ static int tda826x_sleep(struct dvb_frontend *fe)
  {
      struct tda826x_priv *priv = fe->tuner_priv;
      int ret;
-    u8 buf [] = { 0x00, 0x8d };
+    u8 buf[] = { 0x00, 0x8d };
      struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf 
= buf, .len = 2 };

      dprintk("%s:\n", __func__);
@@ -65,7 +65,7 @@ static int tda826x_set_params(struct dvb_frontend *fe)
      u32 div;
      u32 ksyms;
      u32 bandwidth;
-    u8 buf [11];
+    u8 buf[11];
      struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf 
= buf, .len = 11 };

      dprintk("%s:\n", __func__);
@@ -130,7 +130,7 @@ static const struct dvb_tuner_ops tda826x_tuner_ops 
= {
  struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, 
struct i2c_adapter *i2c, int has_loopthrough)
  {
      struct tda826x_priv *priv = NULL;
-    u8 b1 [] = { 0, 0 };
+    u8 b1[] = { 0, 0 };
      struct i2c_msg msg[2] = {
          { .addr = addr, .flags = 0,        .buf = NULL, .len = 0 },
          { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 }

       reply	other threads:[~2023-07-14  8:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230714080514.14297-1-xujianghui@cdjrlc.com>
2023-07-14  8:06 ` sunran001 [this message]
2023-07-19  6:05   ` [PATCH] media: dvb: remove spaces before '[' Hans Verkuil

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=ad3e13dcf101ff613c7fc72c99db8dd2@208suo.com \
    --to=sunran001@208suo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    /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