summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <devnull@localhost>2005-10-17 21:54:00 +0000
committerNickolay V. Shmyrev <devnull@localhost>2005-10-17 21:54:00 +0000
commit03406143bff4739b6d81e6cf6dc15955d0c01073 (patch)
treec65b701de0bf763aa58b5325625c3c5fdd8fdb09 /linux/drivers
parent466a09d21bd73b66ea0ab7cd2aa30503d4d8122f (diff)
downloadmediapointer-dvb-s2-03406143bff4739b6d81e6cf6dc15955d0c01073.tar.gz
mediapointer-dvb-s2-03406143bff4739b6d81e6cf6dc15955d0c01073.tar.bz2
* ../linux/drivers/media/video/tda8290.c: (tda827x_tune),
(tda827xa_tune), (tda8290_tune), (tda8290_init_tuner), (tda8290_init): - Strip trailing whitespaces. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tda8290.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c
index c3517987b..88a065f42 100644
--- a/linux/drivers/media/video/tda8290.c
+++ b/linux/drivers/media/video/tda8290.c
@@ -1,5 +1,5 @@
/*
- $Id: tda8290.c,v 1.21 2005/10/17 21:01:35 hhackmann Exp $
+ $Id: tda8290.c,v 1.22 2005/10/17 21:54:00 nsh Exp $
i2c tv tuner chip device driver
controls the philips tda8290+75 tuner chip combo.
@@ -99,7 +99,7 @@ static void tda827x_tune(struct i2c_client *c, u16 ifc, unsigned int freq)
tuner_reg[3] = 0x40;
tuner_reg[4] = 0x52 + (t->tda827x_lpsel << 5);
tuner_reg[5] = (tda827x_analog[i].spd << 6) + (tda827x_analog[i].div1p5 <<5) +
- (tda827x_analog[i].bs <<3) + tda827x_analog[i].bp;
+ (tda827x_analog[i].bs <<3) + tda827x_analog[i].bp;
tuner_reg[6] = 0x8f + (tda827x_analog[i].gc3 << 4);
tuner_reg[7] = 0x8f;
@@ -222,7 +222,7 @@ static void tda827xa_tune(struct i2c_client *c, u16 ifc, unsigned int freq)
tuner_reg[3] = 0;
tuner_reg[4] = 0x16;
tuner_reg[5] = (tda827xa_analog[i].spd << 5) + (tda827xa_analog[i].svco << 3) +
- tda827xa_analog[i].sbs;
+ tda827xa_analog[i].sbs;
tuner_reg[6] = 0x8b + (tda827xa_analog[i].gc3 << 4);
tuner_reg[7] = 0x0c;
tuner_reg[8] = 4;
@@ -319,7 +319,7 @@ static int tda8290_tune(struct i2c_client *c, u16 ifc, unsigned int freq)
unsigned char addr_agc_stat = 0x1d;
unsigned char addr_pll_stat = 0x1b;
unsigned char adc_sat, agc_stat,
- pll_stat;
+ pll_stat;
i2c_master_send(c, easy_mode, 2);
i2c_master_send(c, soft_reset, 2);
@@ -351,7 +351,7 @@ static int tda8290_tune(struct i2c_client *c, u16 ifc, unsigned int freq)
else
tuner_dbg("tda8290 not locked, no signal?\n");
if ((agc_stat > 115) || (!(pll_stat & 0x80) && (adc_sat <20))) {
- tuner_dbg("adjust gain, step 1. Agc: %d\n", agc_stat);
+ tuner_dbg("adjust gain, step 1. Agc: %d\n", agc_stat);
i2c_master_send(c, gainset_2, 2);
msleep(100);
i2c_master_send(c, &addr_agc_stat, 1);
@@ -359,7 +359,7 @@ static int tda8290_tune(struct i2c_client *c, u16 ifc, unsigned int freq)
i2c_master_send(c, &addr_pll_stat, 1);
i2c_master_recv(c, &pll_stat, 1);
if ((agc_stat > 115) || !(pll_stat & 0x80)) {
- tuner_dbg("adjust gain, step 2. Agc: %d\n", agc_stat);
+ tuner_dbg("adjust gain, step 2. Agc: %d\n", agc_stat);
if (t->tda827x_ver != 0)
tda827xa_agcf(c);
else
@@ -370,7 +370,7 @@ static int tda8290_tune(struct i2c_client *c, u16 ifc, unsigned int freq)
i2c_master_send(c, &addr_pll_stat, 1);
i2c_master_recv(c, &pll_stat, 1);
if((agc_stat > 115) || !(pll_stat & 0x80)) {
- tuner_dbg("adjust gain, step 3. Agc: %d\n", agc_stat);
+ tuner_dbg("adjust gain, step 3. Agc: %d\n", agc_stat);
i2c_master_send(c, adc_head_12, 2);
i2c_master_send(c, pll_bw_low, 2);
msleep(100);
@@ -485,11 +485,11 @@ static void tda8290_init_tuner(struct i2c_client *c)
{
struct tuner *t = i2c_get_clientdata(c);
unsigned char tda8275_init[] = { 0x00, 0x00, 0x00, 0x40, 0xdC, 0x04, 0xAf,
- 0x3F, 0x2A, 0x04, 0xFF, 0x00, 0x00, 0x40 };
+ 0x3F, 0x2A, 0x04, 0xFF, 0x00, 0x00, 0x40 };
unsigned char tda8275a_init[] = { 0x00, 0x00, 0x00, 0x00, 0xdC, 0x05, 0x8b,
- 0x0c, 0x04, 0x20, 0xFF, 0x00, 0x00, 0x4b };
+ 0x0c, 0x04, 0x20, 0xFF, 0x00, 0x00, 0x4b };
struct i2c_msg msg = {.addr = t->tda827x_addr, .flags=0,
- .buf=tda8275_init, .len = 14};
+ .buf=tda8275_init, .len = 14};
if (t->tda827x_ver != 0)
msg.buf = tda8275a_init;
@@ -537,7 +537,7 @@ int tda8290_init(struct i2c_client *c)
if (tuner_addrs == 0) {
tuner_addrs = 0x61;
tuner_info ("could not clearly identify tuner address, defaulting to %x\n",
- tuner_addrs);
+ tuner_addrs);
} else {
tuner_addrs = tuner_addrs & 0xff;
tuner_info ("setting tuner address to %x\n", tuner_addrs);