Message ID | 006749faebbc8d727076152d7e9d1575@208suo.com |
---|---|
State | New |
Headers | show |
Series | media: stv0299: add missing spaces before '*' and remove spaces after '*' | expand |
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;
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(-) 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;