aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda8290.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-09-14 04:13:54 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:32 -0500
commit1cba97d71dca1a3c22b4d7f97893249817036215 (patch)
tree0673ba7cce40953ee97eabb822899f2a5cf0b3d4 /drivers/media/video/tda8290.c
parent1a156045ab06b2cce8cf46e7bf53da26ab33b084 (diff)
V4L/DVB (6471): tuner: i2c_client cannot be part of the tuner struct
The bus-based I2C subsystem allocates the i2c_client struct. So if in order to be able to convert the tuner to the bus-based I2C API the embedded i2c_client struct must be removed from the tuner struct and replaced with a pointer. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tda8290.c')
-rw-r--r--drivers/media/video/tda8290.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c
index ed22be0f5941..c7705cbab2fb 100644
--- a/drivers/media/video/tda8290.c
+++ b/drivers/media/video/tda8290.c
@@ -608,22 +608,22 @@ static int tda829x_find_tuner(struct dvb_frontend *fe)
608 608
609 switch (priv->ver) { 609 switch (priv->ver) {
610 case TDA8290 | TDA8275: 610 case TDA8290 | TDA8275:
611 strlcpy(t->i2c.name, "tda8290+75", sizeof(t->i2c.name)); 611 strlcpy(t->i2c->name, "tda8290+75", sizeof(t->i2c->name));
612 break; 612 break;
613 case TDA8295 | TDA8275: 613 case TDA8295 | TDA8275:
614 strlcpy(t->i2c.name, "tda8295+75", sizeof(t->i2c.name)); 614 strlcpy(t->i2c->name, "tda8295+75", sizeof(t->i2c->name));
615 break; 615 break;
616 case TDA8290 | TDA8275A: 616 case TDA8290 | TDA8275A:
617 strlcpy(t->i2c.name, "tda8290+75a", sizeof(t->i2c.name)); 617 strlcpy(t->i2c->name, "tda8290+75a", sizeof(t->i2c->name));
618 break; 618 break;
619 case TDA8295 | TDA8275A: 619 case TDA8295 | TDA8275A:
620 strlcpy(t->i2c.name, "tda8295+75a", sizeof(t->i2c.name)); 620 strlcpy(t->i2c->name, "tda8295+75a", sizeof(t->i2c->name));
621 break; 621 break;
622 case TDA8290 | TDA18271: 622 case TDA8290 | TDA18271:
623 strlcpy(t->i2c.name, "tda8290+18271", sizeof(t->i2c.name)); 623 strlcpy(t->i2c->name, "tda8290+18271", sizeof(t->i2c->name));
624 break; 624 break;
625 case TDA8295 | TDA18271: 625 case TDA8295 | TDA18271:
626 strlcpy(t->i2c.name, "tda8295+18271", sizeof(t->i2c.name)); 626 strlcpy(t->i2c->name, "tda8295+18271", sizeof(t->i2c->name));
627 break; 627 break;
628 default: 628 default:
629 return -EINVAL; 629 return -EINVAL;
@@ -665,8 +665,8 @@ int tda829x_attach(struct tuner *t)
665 return -ENOMEM; 665 return -ENOMEM;
666 fe->analog_demod_priv = priv; 666 fe->analog_demod_priv = priv;
667 667
668 priv->i2c_props.addr = t->i2c.addr; 668 priv->i2c_props.addr = t->i2c->addr;
669 priv->i2c_props.adap = t->i2c.adapter; 669 priv->i2c_props.adap = t->i2c->adapter;
670 priv->cfg.config = &t->config; 670 priv->cfg.config = &t->config;
671 priv->cfg.tuner_callback = t->tuner_callback; 671 priv->cfg.tuner_callback = t->tuner_callback;
672 priv->t = t; 672 priv->t = t;
@@ -696,7 +696,7 @@ int tda829x_attach(struct tuner *t)
696 } else if (priv->ver & TDA8295) 696 } else if (priv->ver & TDA8295)
697 tda8295_init_if(fe); 697 tda8295_init_if(fe);
698 698
699 tuner_info("type set to %s\n", t->i2c.name); 699 tuner_info("type set to %s\n", t->i2c->name);
700 700
701 t->mode = V4L2_TUNER_ANALOG_TV; 701 t->mode = V4L2_TUNER_ANALOG_TV;
702 702
@@ -707,8 +707,8 @@ EXPORT_SYMBOL_GPL(tda829x_attach);
707int tda8290_probe(struct tuner *t) 707int tda8290_probe(struct tuner *t)
708{ 708{
709 struct tuner_i2c_props i2c_props = { 709 struct tuner_i2c_props i2c_props = {
710 .adap = t->i2c.adapter, 710 .adap = t->i2c->adapter,
711 .addr = t->i2c.addr 711 .addr = t->i2c->addr
712 }; 712 };
713 713
714 unsigned char soft_reset[] = { 0x00, 0x00 }; 714 unsigned char soft_reset[] = { 0x00, 0x00 };