Commit 8c8ca1c7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] stv0367: get rid of warning: no previous prototype

drivers/media/dvb-frontends/stv0367.c:1267:25: warning: no previous prototype for 'stv0367ter_lock_algo' [-Wmissing-prototypes]
drivers/media/dvb-frontends/stv0367.c:1531:5: warning: no previous prototype for 'stv0367ter_init' [-Wmissing-prototypes]
drivers/media/dvb-frontends/stv0367.c:2381:21: warning: no previous prototype for 'stv0367cab_SetQamSize' [-Wmissing-prototypes]
drivers/media/dvb-frontends/stv0367.c:2765:5: warning: no previous prototype for 'stv0367cab_init' [-Wmissing-prototypes]
drivers/media/dvb-frontends/stv0367.c:882:4: warning: no previous prototype for 'stv0367_getbits' [-Wmissing-prototypes]
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5506bcba
...@@ -879,7 +879,8 @@ static u8 stv0367_readbits(struct stv0367_state *state, u32 label) ...@@ -879,7 +879,8 @@ static u8 stv0367_readbits(struct stv0367_state *state, u32 label)
return val; return val;
} }
u8 stv0367_getbits(u8 reg, u32 label) #if 0 /* Currently, unused */
static u8 stv0367_getbits(u8 reg, u32 label)
{ {
u8 mask, pos; u8 mask, pos;
...@@ -887,7 +888,7 @@ u8 stv0367_getbits(u8 reg, u32 label) ...@@ -887,7 +888,7 @@ u8 stv0367_getbits(u8 reg, u32 label)
return (reg & mask) >> pos; return (reg & mask) >> pos;
} }
#endif
static int stv0367ter_gate_ctrl(struct dvb_frontend *fe, int enable) static int stv0367ter_gate_ctrl(struct dvb_frontend *fe, int enable)
{ {
struct stv0367_state *state = fe->demodulator_priv; struct stv0367_state *state = fe->demodulator_priv;
...@@ -1263,8 +1264,8 @@ stv0367_ter_signal_type stv0367ter_check_cpamp(struct stv0367_state *state, ...@@ -1263,8 +1264,8 @@ stv0367_ter_signal_type stv0367ter_check_cpamp(struct stv0367_state *state,
return CPAMPStatus; return CPAMPStatus;
} }
enum static enum stv0367_ter_signal_type
stv0367_ter_signal_type stv0367ter_lock_algo(struct stv0367_state *state) stv0367ter_lock_algo(struct stv0367_state *state)
{ {
enum stv0367_ter_signal_type ret_flag; enum stv0367_ter_signal_type ret_flag;
short int wd, tempo; short int wd, tempo;
...@@ -1528,7 +1529,7 @@ static int stv0367ter_sleep(struct dvb_frontend *fe) ...@@ -1528,7 +1529,7 @@ static int stv0367ter_sleep(struct dvb_frontend *fe)
return stv0367ter_standby(fe, 1); return stv0367ter_standby(fe, 1);
} }
int stv0367ter_init(struct dvb_frontend *fe) static int stv0367ter_init(struct dvb_frontend *fe)
{ {
struct stv0367_state *state = fe->demodulator_priv; struct stv0367_state *state = fe->demodulator_priv;
struct stv0367ter_state *ter_state = state->ter_state; struct stv0367ter_state *ter_state = state->ter_state;
...@@ -2378,9 +2379,9 @@ static u32 stv0367cab_get_adc_freq(struct dvb_frontend *fe, u32 ExtClk_Hz) ...@@ -2378,9 +2379,9 @@ static u32 stv0367cab_get_adc_freq(struct dvb_frontend *fe, u32 ExtClk_Hz)
return ADCClk_Hz; return ADCClk_Hz;
} }
enum stv0367cab_mod stv0367cab_SetQamSize(struct stv0367_state *state, static enum stv0367cab_mod stv0367cab_SetQamSize(struct stv0367_state *state,
u32 SymbolRate, u32 SymbolRate,
enum stv0367cab_mod QAMSize) enum stv0367cab_mod QAMSize)
{ {
/* Set QAM size */ /* Set QAM size */
stv0367_writebits(state, F367CAB_QAM_MODE, QAMSize); stv0367_writebits(state, F367CAB_QAM_MODE, QAMSize);
...@@ -2762,7 +2763,7 @@ static int stv0367cab_sleep(struct dvb_frontend *fe) ...@@ -2762,7 +2763,7 @@ static int stv0367cab_sleep(struct dvb_frontend *fe)
return stv0367cab_standby(fe, 1); return stv0367cab_standby(fe, 1);
} }
int stv0367cab_init(struct dvb_frontend *fe) static int stv0367cab_init(struct dvb_frontend *fe)
{ {
struct stv0367_state *state = fe->demodulator_priv; struct stv0367_state *state = fe->demodulator_priv;
struct stv0367cab_state *cab_state = state->cab_state; struct stv0367cab_state *cab_state = state->cab_state;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment