summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-06-28 23:50:48 +0000
committerMichael Krufky <devnull@localhost>2005-06-28 23:50:48 +0000
commitee1dbeb3ccc6219058014fdc3b5d2eafdec2f333 (patch)
tree56ccc0eb3bc518cabc8fcd38e1e8b6ff8e13ec7d
parentb8bd2cf93e080fb276d420abd5984229ac1956df (diff)
downloadmediapointer-dvb-s2-ee1dbeb3ccc6219058014fdc3b5d2eafdec2f333.tar.gz
mediapointer-dvb-s2-ee1dbeb3ccc6219058014fdc3b5d2eafdec2f333.tar.bz2
- Removed remaining trailing whitespace.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt3302.c46
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt3302.h2
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt3302_priv.h8
3 files changed, 28 insertions, 28 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt3302.c b/linux/drivers/media/dvb/frontends/lgdt3302.c
index b42d7e89d..d0b91219c 100644
--- a/linux/drivers/media/dvb/frontends/lgdt3302.c
+++ b/linux/drivers/media/dvb/frontends/lgdt3302.c
@@ -1,5 +1,5 @@
/*
- * $Id: lgdt3302.c,v 1.1 2005/06/28 16:37:18 mkrufky Exp $
+ * $Id: lgdt3302.c,v 1.2 2005/06/28 23:50:48 mkrufky Exp $
*
* Support for LGDT3302 (DViCO FustionHDTV 3 Gold) - VSB/QAM
*
@@ -24,14 +24,14 @@
*
*/
-/*
+/*
* NOTES ABOUT THIS DRIVER
*
* This driver supports DViCO FusionHDTV 3 Gold under Linux.
*
* TODO:
* BER and signal strength always return 0.
- *
+ *
*/
#include <linux/version.h>
@@ -121,7 +121,7 @@ static int i2c_readbytes (struct lgdt3302_state* state,
}
/*
- * This routine writes the register (reg) to the demod bus
+ * This routine writes the register (reg) to the demod bus
* then reads the data returned for (len) bytes.
*/
@@ -155,7 +155,7 @@ int lgdt3302_SwReset(struct lgdt3302_state* state)
* bits 5-0 are 1 to mask interrupts */
};
- ret = i2c_writebytes(state,
+ ret = i2c_writebytes(state,
state->config->demod_address,
reset, sizeof(reset));
if (ret == 0) {
@@ -205,7 +205,7 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
struct dvb_frontend_parameters *param)
{
u8 buf[4];
- struct lgdt3302_state* state =
+ struct lgdt3302_state* state =
(struct lgdt3302_state*) fe->demodulator_priv;
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,10)
@@ -238,7 +238,7 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
case QAM_256:
dprintk("%s: QAM_256 MODE\n", __FUNCTION__);
-
+
/* Select QAM_256 mode and serial MPEG interface */
top_ctrl_cfg[1] = 0x05;
break;
@@ -264,7 +264,7 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
i2c_writebytes(state, state->config->demod_address,
agc_ctrl_cfg, sizeof(agc_ctrl_cfg));
- /* Change the TPCLK pin polarity
+ /* Change the TPCLK pin polarity
data is valid on falling clock */
i2c_writebytes(state, state->config->demod_address,
demux_ctrl_cfg, sizeof(demux_ctrl_cfg));
@@ -275,7 +275,7 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
recovery center frequency register for VSB */
i2c_writebytes(state, state->config->demod_address,
vsb_freq_cfg, sizeof(vsb_freq_cfg));
- } else {
+ } else {
/* Initialization for QAM modes only */
/* Set the value of 'INLVTHD' register 0x2a/0x2c
to value from 'IFACC' register 0x39/0x3b -1 */
@@ -328,7 +328,7 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
static int lgdt3302_get_frontend(struct dvb_frontend* fe,
struct dvb_frontend_parameters* param)
{
- struct lgdt3302_state *state = fe->demodulator_priv;
+ struct lgdt3302_state *state = fe->demodulator_priv;
param->frequency = state->current_frequency;
return 0;
}
@@ -429,18 +429,18 @@ static int lgdt3302_read_snr(struct dvb_frontend* fe, u16* snr)
* starting at 43 or 45 is the SNR value in db. There are duplicate noise
* value entries at the beginning because the SNR varies more than
* 1 db for a change of 1 digit in noise at very small values of noise.
- *
+ *
* Examples from SNR_EQ table:
* noise SNR
- * 0 43
- * 1 42
- * 2 39
+ * 0 43
+ * 1 42
+ * 2 39
* 3 37
- * 4 36
- * 5 35
+ * 4 36
+ * 5 35
* 6 34
- * 7 33
- * 8 33
+ * 7 33
+ * 8 33
* 9 32
* 10 32
* 11 31
@@ -457,7 +457,7 @@ static int lgdt3302_read_snr(struct dvb_frontend* fe, u16* snr)
80978, 101945, 128341, 161571, 203406, 256073, 0x40000
};
- static const u32 SNR_PH[] =
+ static const u32 SNR_PH[] =
{ 1, 2, 2, 2, 3, 3, 4, 5, 6, 8,
10, 12, 15, 19, 23, 29, 37, 46, 58, 73,
91, 115, 144, 182, 229, 288, 362, 456, 574, 722,
@@ -471,15 +471,15 @@ static int lgdt3302_read_snr(struct dvb_frontend* fe, u16* snr)
static u32 snr_db; /* index into SNR_EQ[] */
struct lgdt3302_state* state = (struct lgdt3302_state*) fe->demodulator_priv;
- /* read both equalizer and pase tracker noise data */
+ /* read both equalizer and pase tracker noise data */
i2c_selectreadbytes(state, EQPH_ERR0, buf, sizeof(buf));
if (state->current_modulation == VSB_8) {
/* Equalizer Mean-Square Error Register for VSB */
noise = ((buf[0] & 7) << 16) | (buf[1] << 8) | buf[2];
- /*
- * Look up noise value in table.
+ /*
+ * Look up noise value in table.
* A better search algorithm could be used...
* watch out there are duplicate entries.
*/
@@ -509,7 +509,7 @@ static int lgdt3302_read_snr(struct dvb_frontend* fe, u16* snr)
/* read both equalizer and pase tracker noise data */
i2c_selectreadbytes(state, EQPH_ERR0, buf, sizeof(buf));
-
+
if (state->current_modulation == VSB_8) {
/* Equalizer Mean-Square Error Register for VSB */
noise = ((buf[0] & 7) << 16) | (buf[1] << 8) | buf[2];
diff --git a/linux/drivers/media/dvb/frontends/lgdt3302.h b/linux/drivers/media/dvb/frontends/lgdt3302.h
index 250fb46ce..81587a400 100644
--- a/linux/drivers/media/dvb/frontends/lgdt3302.h
+++ b/linux/drivers/media/dvb/frontends/lgdt3302.h
@@ -1,5 +1,5 @@
/*
- * $Id: lgdt3302.h,v 1.1 2005/06/28 16:37:18 mkrufky Exp $
+ * $Id: lgdt3302.h,v 1.2 2005/06/28 23:50:48 mkrufky Exp $
*
* Support for LGDT3302 (DViCO FustionHDTV 3 Gold) - VSB/QAM
*
diff --git a/linux/drivers/media/dvb/frontends/lgdt3302_priv.h b/linux/drivers/media/dvb/frontends/lgdt3302_priv.h
index 1adab34be..6193fa7a5 100644
--- a/linux/drivers/media/dvb/frontends/lgdt3302_priv.h
+++ b/linux/drivers/media/dvb/frontends/lgdt3302_priv.h
@@ -1,5 +1,5 @@
/*
- * $Id: lgdt3302_priv.h,v 1.1 2005/06/28 16:37:18 mkrufky Exp $
+ * $Id: lgdt3302_priv.h,v 1.2 2005/06/28 23:50:48 mkrufky Exp $
*
* Support for LGDT3302 (DViCO FustionHDTV 3 Gold) - VSB/QAM
*
@@ -48,9 +48,9 @@ enum I2C_REG {
AGC_FUNC_CTRL1= 0x32,
AGC_FUNC_CTRL2= 0x33,
AGC_FUNC_CTRL3= 0x34,
- AGC_RFIF_ACC0= 0x39,
- AGC_RFIF_ACC1= 0x3a,
- AGC_RFIF_ACC2= 0x3b,
+ AGC_RFIF_ACC0= 0x39,
+ AGC_RFIF_ACC1= 0x3a,
+ AGC_RFIF_ACC2= 0x3b,
AGC_STATUS= 0x3f,
SYNC_STATUS_VSB= 0x43,
EQPH_ERR0= 0x47,