summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda8290.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/tda8290.c')
-rw-r--r--linux/drivers/media/video/tda8290.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c
index 2256baeab..44ea3c1e9 100644
--- a/linux/drivers/media/video/tda8290.c
+++ b/linux/drivers/media/video/tda8290.c
@@ -1,5 +1,5 @@
/*
- * $Id: tda8290.c,v 1.12 2005/06/26 14:03:48 nsh Exp $
+ * $Id: tda8290.c,v 1.13 2005/06/28 23:41:47 mkrufky Exp $
*
* i2c tv tuner chip device driver
* controls the philips tda8290+75 tuner chip combo.
@@ -138,14 +138,14 @@ static int tda8290_tune(struct i2c_client *c)
}
static void set_frequency(struct tuner *t, u16 ifc, unsigned int freq)
-{
+{
u32 N;
if (t->mode == V4L2_TUNER_RADIO)
freq = freq / 1000;
N = (((freq<<3)+ifc)&0x3fffc);
-
+
N = N >> get_freq_entry(div_table, freq);
t->i2c_set_freq[0] = 0;
t->i2c_set_freq[1] = (unsigned char)(N>>8);
@@ -200,12 +200,12 @@ static int has_signal(struct i2c_client *c)
{
unsigned char i2c_get_afc[1] = { 0x1B };
unsigned char afc = 0;
-
+
i2c_master_send(c, i2c_get_afc, ARRAY_SIZE(i2c_get_afc));
i2c_master_recv(c, &afc, 1);
return (afc & 0x80)? 65535:0;
}
-
+
int tda8290_init(struct i2c_client *c)
{
struct tuner *t = i2c_get_clientdata(c);