From: sunran001@208suo.com
To: mchehab@kernel.org
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] media: stv0299: add missing spaces before '*' and remove spaces after '*'
Date: Mon, 17 Jul 2023 18:00:40 +0800 [thread overview]
Message-ID: <006749faebbc8d727076152d7e9d1575@208suo.com> (raw)
In-Reply-To: <20230717095932.389-1-xujianghui@cdjrlc.com>
Add missing spaces to clear checkpatch errors.
ERROR: "foo* bar" should be "foo *bar"
Signed-off-by: Ran Sun <sunran001@208suo.com>
---
drivers/media/dvb-frontends/stv0299.c | 28 +++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/media/dvb-frontends/stv0299.c
b/drivers/media/dvb-frontends/stv0299.c
index b5263a0ee5aa..f933928eb836 100644
--- a/drivers/media/dvb-frontends/stv0299.c
+++ b/drivers/media/dvb-frontends/stv0299.c
@@ -82,9 +82,9 @@ static int stv0299_writeregI (struct stv0299_state*
state, u8 reg, u8 data)
return (ret != 1) ? -EREMOTEIO : 0;
}
-static int stv0299_write(struct dvb_frontend* fe, const u8 buf[], int
len)
+static int stv0299_write(struct dvb_frontend *fe, const u8 buf[], int
len)
{
- struct stv0299_state* state = fe->demodulator_priv;
+ struct stv0299_state *state = fe->demodulator_priv;
if (len != 2)
return -EINVAL;
@@ -92,7 +92,7 @@ static int stv0299_write(struct dvb_frontend* fe,
const u8 buf[], int len)
return stv0299_writeregI(state, buf[0], buf[1]);
}
-static u8 stv0299_readreg (struct stv0299_state* state, u8 reg)
+static u8 stv0299_readreg (struct stv0299_state *state, u8 reg)
{
int ret;
u8 b0 [] = { reg };
@@ -109,7 +109,7 @@ static u8 stv0299_readreg (struct stv0299_state*
state, u8 reg)
return b1[0];
}
-static int stv0299_readregs (struct stv0299_state* state, u8 reg1, u8
*b, u8 len)
+static int stv0299_readregs (struct stv0299_state *state, u8 reg1, u8
*b, u8 len)
{
int ret;
struct i2c_msg msg [] = { { .addr = state->config->demod_address,
.flags = 0, .buf = ®1, .len = 1 },
@@ -177,7 +177,7 @@ static enum fe_code_rate stv0299_get_fec(struct
stv0299_state *state)
return fec_tab [index];
}
-static int stv0299_wait_diseqc_fifo (struct stv0299_state* state, int
timeout)
+static int stv0299_wait_diseqc_fifo (struct stv0299_state *state, int
timeout)
{
unsigned long start = jiffies;
@@ -194,7 +194,7 @@ static int stv0299_wait_diseqc_fifo (struct
stv0299_state* state, int timeout)
return 0;
}
-static int stv0299_wait_diseqc_idle (struct stv0299_state* state, int
timeout)
+static int stv0299_wait_diseqc_idle (struct stv0299_state *state, int
timeout)
{
unsigned long start = jiffies;
@@ -211,9 +211,9 @@ static int stv0299_wait_diseqc_idle (struct
stv0299_state* state, int timeout)
return 0;
}
-static int stv0299_set_symbolrate (struct dvb_frontend* fe, u32 srate)
+static int stv0299_set_symbolrate (struct dvb_frontend *fe, u32 srate)
{
- struct stv0299_state* state = fe->demodulator_priv;
+ struct stv0299_state *state = fe->demodulator_priv;
u64 big = srate;
u32 ratio;
@@ -229,7 +229,7 @@ static int stv0299_set_symbolrate (struct
dvb_frontend* fe, u32 srate)
return state->config->set_symbol_rate(fe, srate, ratio);
}
-static int stv0299_get_symbolrate (struct stv0299_state* state)
+static int stv0299_get_symbolrate (struct stv0299_state *state)
{
u32 Mclk = state->config->mclk / 4096L;
u32 srate;
@@ -261,10 +261,10 @@ static int stv0299_get_symbolrate (struct
stv0299_state* state)
return srate;
}
-static int stv0299_send_diseqc_msg (struct dvb_frontend* fe,
+static int stv0299_send_diseqc_msg (struct dvb_frontend *fe,
struct dvb_diseqc_master_cmd *m)
{
- struct stv0299_state* state = fe->demodulator_priv;
+ struct stv0299_state *state = fe->demodulator_priv;
u8 val;
int i;
@@ -295,7 +295,7 @@ static int stv0299_send_diseqc_msg (struct
dvb_frontend* fe,
static int stv0299_send_diseqc_burst(struct dvb_frontend *fe,
enum fe_sec_mini_cmd burst)
{
- struct stv0299_state* state = fe->demodulator_priv;
+ struct stv0299_state *state = fe->demodulator_priv;
u8 val;
dprintk ("%s\n", __func__);
@@ -323,7 +323,7 @@ static int stv0299_send_diseqc_burst(struct
dvb_frontend *fe,
static int stv0299_set_tone(struct dvb_frontend *fe,
enum fe_sec_tone_mode tone)
{
- struct stv0299_state* state = fe->demodulator_priv;
+ struct stv0299_state *state = fe->demodulator_priv;
u8 val;
if (stv0299_wait_diseqc_idle (state, 100) < 0)
@@ -346,7 +346,7 @@ static int stv0299_set_tone(struct dvb_frontend *fe,
static int stv0299_set_voltage(struct dvb_frontend *fe,
enum fe_sec_voltage voltage)
{
- struct stv0299_state* state = fe->demodulator_priv;
+ struct stv0299_state *state = fe->demodulator_priv;
u8 reg0x08;
u8 reg0x0c;
parent reply other threads:[~2023-07-17 10:00 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20230717095932.389-1-xujianghui@cdjrlc.com>]
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=006749faebbc8d727076152d7e9d1575@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
all inboxes | Powered by JetHome®