summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/bt8xx/dst.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx/dst.c')
-rw-r--r--linux/drivers/media/dvb/bt8xx/dst.c26
1 files changed, 6 insertions, 20 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst.c b/linux/drivers/media/dvb/bt8xx/dst.c
index 49c46d7f8..e175ed967 100644
--- a/linux/drivers/media/dvb/bt8xx/dst.c
+++ b/linux/drivers/media/dvb/bt8xx/dst.c
@@ -33,7 +33,6 @@
#include "dst_priv.h"
#include "dst.h"
-
struct dst_state {
struct i2c_adapter* i2c;
@@ -69,12 +68,10 @@ struct dst_state {
fe_bandwidth_t bandwidth;
};
-
-
-unsigned int dst_verbose = 0;
+static unsigned int dst_verbose = 0;
MODULE_PARM(dst_verbose, "i");
MODULE_PARM_DESC(dst_verbose, "verbose startup messages, default is 1 (yes)");
-unsigned int dst_debug = 0;
+static unsigned int dst_debug = 0;
MODULE_PARM(dst_debug, "i");
MODULE_PARM_DESC(dst_debug, "debug messages, default is 0 (no)");
@@ -138,6 +135,7 @@ static int dst_gpio_inb(struct dst_state *state, u8 * result)
dprintk("%s: dst_gpio_inb error (err == %i)\n", __FUNCTION__, err);
return -EREMOTEIO;
}
+
*result = (u8) rd_packet.rd.value;
return 0;
}
@@ -378,7 +376,6 @@ static int dst_set_inversion(struct dst_state* state, fe_spectral_inversion_t in
return 0;
}
-
static int dst_set_fec(struct dst_state* state, fe_code_rate_t fec)
{
state->fec = fec;
@@ -425,7 +422,6 @@ static int dst_set_symbolrate(struct dst_state* state, u32 srate)
return 0;
}
-
static u8 dst_check_sum(u8 * buf, u32 len)
{
u32 i;
@@ -438,14 +434,14 @@ static u8 dst_check_sum(u8 * buf, u32 len)
return ((~val) + 1);
}
-typedef struct dst_types {
+struct dst_types {
char *mstr;
int offs;
u8 dst_type;
u32 type_flags;
-} DST_TYPES;
+};
-struct dst_types dst_tlist[] = {
+static struct dst_types dst_tlist[] = {
{"DST-020", 0, DST_TYPE_IS_SAT, DST_TYPE_HAS_SYMDIV},
{"DST-030", 0, DST_TYPE_IS_SAT, DST_TYPE_HAS_TS204 | DST_TYPE_HAS_NEWTUNE},
{"DST-03T", 0, DST_TYPE_IS_SAT, DST_TYPE_HAS_SYMDIV | DST_TYPE_HAS_TS204},
@@ -750,13 +746,6 @@ static int dst_write_tuna(struct dvb_frontend* fe)
return dst_get_tuna(state);
}
-
-
-
-
-
-
-
/*
* line22k0 0x00, 0x09, 0x00, 0xff, 0x01, 0x00, 0x00, 0x00
* line22k1 0x00, 0x09, 0x01, 0xff, 0x01, 0x00, 0x00, 0x00
@@ -826,7 +815,6 @@ static int dst_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage)
return 0;
}
-
static int dst_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
{
u8 *val;
@@ -854,7 +842,6 @@ static int dst_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
return 0;
}
-
static int dst_init(struct dvb_frontend* fe)
{
struct dst_state* state = (struct dst_state*) fe->demodulator_priv;
@@ -1095,7 +1082,6 @@ static struct dvb_frontend_ops dst_dvbc_ops = {
.read_snr = dst_read_snr,
};
-
MODULE_DESCRIPTION("DST DVB-S/T/C Combo Frontend driver");
MODULE_AUTHOR("Jamie Honan");
MODULE_LICENSE("GPL");