summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/stv0299.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2005-03-02 21:42:00 +0000
committerJohannes Stezenbach <devnull@localhost>2005-03-02 21:42:00 +0000
commit22369c7b769f439e3b351ecc9cd396a40b452db1 (patch)
treed7c330a08914350746300715a74c8fa6dc1fcebf /linux/drivers/media/dvb/frontends/stv0299.c
parentca7fda81614047eda9a192f937edf43dbbb11e88 (diff)
downloadmediapointer-dvb-s2-22369c7b769f439e3b351ecc9cd396a40b452db1.tar.gz
mediapointer-dvb-s2-22369c7b769f439e3b351ecc9cd396a40b452db1.tar.bz2
whitespace cleanup (remove ws at eol, sync with changes in mainline kernel)
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stv0299.c')
-rw-r--r--linux/drivers/media/dvb/frontends/stv0299.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv0299.c b/linux/drivers/media/dvb/frontends/stv0299.c
index bbe24fc47..a468f8804 100644
--- a/linux/drivers/media/dvb/frontends/stv0299.c
+++ b/linux/drivers/media/dvb/frontends/stv0299.c
@@ -54,13 +54,9 @@
#include "stv0299.h"
struct stv0299_state {
-
struct i2c_adapter* i2c;
-
struct dvb_frontend_ops ops;
-
const struct stv0299_config* config;
-
struct dvb_frontend frontend;
u8 initialised:1;
@@ -102,7 +98,6 @@ int stv0299_writereg (struct dvb_frontend* fe, u8 reg, u8 data)
return stv0299_writeregI(state, reg, data);
}
-
static u8 stv0299_readreg (struct stv0299_state* state, u8 reg)
{
int ret;
@@ -120,7 +115,6 @@ 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)
{
int ret;
@@ -135,7 +129,6 @@ static int stv0299_readregs (struct stv0299_state* state, u8 reg1, u8 *b, u8 len
return ret == 2 ? 0 : ret;
}
-
static int stv0299_set_FEC (struct stv0299_state* state, fe_code_rate_t fec)
{
dprintk ("%s\n", __FUNCTION__);
@@ -172,7 +165,6 @@ static int stv0299_set_FEC (struct stv0299_state* state, fe_code_rate_t fec)
}
}
-
static fe_code_rate_t stv0299_get_fec (struct stv0299_state* state)
{
static fe_code_rate_t fec_tab [] = { FEC_2_3, FEC_3_4, FEC_5_6,
@@ -190,7 +182,6 @@ static fe_code_rate_t stv0299_get_fec (struct stv0299_state* state)
return fec_tab [index];
}
-
static int stv0299_wait_diseqc_fifo (struct stv0299_state* state, int timeout)
{
unsigned long start = jiffies;
@@ -208,7 +199,6 @@ 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)
{
unsigned long start = jiffies;
@@ -244,7 +234,6 @@ 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)
{
u32 Mclk = state->config->mclk / 4096L;
@@ -277,19 +266,6 @@ static int stv0299_get_symbolrate (struct stv0299_state* state)
return srate;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
static int stv0299_send_diseqc_msg (struct dvb_frontend* fe,
struct dvb_diseqc_master_cmd *m)
{
@@ -321,7 +297,6 @@ static int stv0299_send_diseqc_msg (struct dvb_frontend* fe,
return 0;
}
-
static int stv0299_send_diseqc_burst (struct dvb_frontend* fe, fe_sec_mini_cmd_t burst)
{
struct stv0299_state* state = (struct stv0299_state*) fe->demodulator_priv;
@@ -349,7 +324,6 @@ static int stv0299_send_diseqc_burst (struct dvb_frontend* fe, fe_sec_mini_cmd_t
return 0;
}
-
static int stv0299_set_tone (struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
{
struct stv0299_state* state = (struct stv0299_state*) fe->demodulator_priv;
@@ -372,7 +346,6 @@ static int stv0299_set_tone (struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
}
}
-
static int stv0299_set_voltage (struct dvb_frontend* fe, fe_sec_voltage_t voltage)
{
struct stv0299_state* state = (struct stv0299_state*) fe->demodulator_priv;
@@ -412,7 +385,6 @@ static int stv0299_set_voltage (struct dvb_frontend* fe, fe_sec_voltage_t voltag
};
}
-
static int stv0299_send_legacy_dish_cmd(struct dvb_frontend* fe, u32 cmd)
{
u8 last = 1;
@@ -433,9 +405,7 @@ static int stv0299_send_legacy_dish_cmd(struct dvb_frontend* fe, u32 cmd)
for (i=0; i<9; i++) {
if((cmd & 0x01) != last) {
- stv0299_set_voltage(fe,
- last ? SEC_VOLTAGE_13 :
- SEC_VOLTAGE_18);
+ stv0299_set_voltage(fe, last ? SEC_VOLTAGE_13 : SEC_VOLTAGE_18);
last = (last) ? 0 : 1;
}
@@ -448,7 +418,6 @@ static int stv0299_send_legacy_dish_cmd(struct dvb_frontend* fe, u32 cmd)
return 0;
}
-
static int stv0299_init (struct dvb_frontend* fe)
{
struct stv0299_state* state = (struct stv0299_state*) fe->demodulator_priv;
@@ -468,7 +437,6 @@ static int stv0299_init (struct dvb_frontend* fe)
return 0;
}
-
static int stv0299_read_status(struct dvb_frontend* fe, fe_status_t* status)
{
struct stv0299_state* state = (struct stv0299_state*) fe->demodulator_priv;