aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda9887.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-21 14:22:25 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:08 -0500
commit16f291684c50497cc92e83f01d354fae187d1f18 (patch)
treebe7afdfd2b57816894e2e05cac042d955a9b73c8 /drivers/media/video/tda9887.c
parente2be32ac8017d1bcb293f8c11c046ff654991385 (diff)
V4L/DVB (6438): tuner: move analog_demod_priv into struct dvb_frontend
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tda9887.c')
-rw-r--r--drivers/media/video/tda9887.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c
index d9bfa812ffe..68b22da7e25 100644
--- a/drivers/media/video/tda9887.c
+++ b/drivers/media/video/tda9887.c
@@ -512,7 +512,7 @@ static int tda9887_set_config(struct tuner *t, char *buf)
512 512
513static int tda9887_status(struct tuner *t) 513static int tda9887_status(struct tuner *t)
514{ 514{
515 struct tda9887_priv *priv = t->priv; 515 struct tda9887_priv *priv = t->fe.analog_demod_priv;
516 unsigned char buf[1]; 516 unsigned char buf[1];
517 int rc; 517 int rc;
518 518
@@ -525,7 +525,7 @@ static int tda9887_status(struct tuner *t)
525 525
526static void tda9887_configure(struct tuner *t) 526static void tda9887_configure(struct tuner *t)
527{ 527{
528 struct tda9887_priv *priv = t->priv; 528 struct tda9887_priv *priv = t->fe.analog_demod_priv;
529 int rc; 529 int rc;
530 530
531 memset(priv->data,0,sizeof(priv->data)); 531 memset(priv->data,0,sizeof(priv->data));
@@ -572,13 +572,13 @@ static void tda9887_configure(struct tuner *t)
572 572
573static void tda9887_tuner_status(struct tuner *t) 573static void tda9887_tuner_status(struct tuner *t)
574{ 574{
575 struct tda9887_priv *priv = t->priv; 575 struct tda9887_priv *priv = t->fe.analog_demod_priv;
576 tda9887_info("Data bytes: b=0x%02x c=0x%02x e=0x%02x\n", priv->data[1], priv->data[2], priv->data[3]); 576 tda9887_info("Data bytes: b=0x%02x c=0x%02x e=0x%02x\n", priv->data[1], priv->data[2], priv->data[3]);
577} 577}
578 578
579static int tda9887_get_afc(struct tuner *t) 579static int tda9887_get_afc(struct tuner *t)
580{ 580{
581 struct tda9887_priv *priv = t->priv; 581 struct tda9887_priv *priv = t->fe.analog_demod_priv;
582 static int AFC_BITS_2_kHz[] = { 582 static int AFC_BITS_2_kHz[] = {
583 -12500, -37500, -62500, -97500, 583 -12500, -37500, -62500, -97500,
584 -112500, -137500, -162500, -187500, 584 -112500, -137500, -162500, -187500,
@@ -606,8 +606,8 @@ static void tda9887_set_freq(struct tuner *t, unsigned int freq)
606 606
607static void tda9887_release(struct tuner *t) 607static void tda9887_release(struct tuner *t)
608{ 608{
609 kfree(t->priv); 609 kfree(t->fe.analog_demod_priv);
610 t->priv = NULL; 610 t->fe.analog_demod_priv = NULL;
611} 611}
612 612
613static struct analog_tuner_ops tda9887_tuner_ops = { 613static struct analog_tuner_ops tda9887_tuner_ops = {
@@ -626,7 +626,7 @@ int tda9887_tuner_init(struct tuner *t)
626 priv = kzalloc(sizeof(struct tda9887_priv), GFP_KERNEL); 626 priv = kzalloc(sizeof(struct tda9887_priv), GFP_KERNEL);
627 if (priv == NULL) 627 if (priv == NULL)
628 return -ENOMEM; 628 return -ENOMEM;
629 t->priv = priv; 629 t->fe.analog_demod_priv = priv;
630 630
631 priv->i2c_props.addr = t->i2c.addr; 631 priv->i2c_props.addr = t->i2c.addr;
632 priv->i2c_props.adap = t->i2c.adapter; 632 priv->i2c_props.adap = t->i2c.adapter;