diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-22 13:45:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:45 -0400 |
commit | 446018d80736ab16a117ce0db5a20467c91a0f90 (patch) | |
tree | e9efa80c52112ab30d5f159eb722b6531636266d /drivers/media | |
parent | 1fe8736955515f5075bef05c366b2d145d29cd44 (diff) |
V4L/DVB (7261): Use the same callback argument as xc3028 and xc5000
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/frontends/tda827x.c | 6 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-core.c | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/tda827x.c b/drivers/media/dvb/frontends/tda827x.c index 3190c8d0c17c..967ac8b28efd 100644 --- a/drivers/media/dvb/frontends/tda827x.c +++ b/drivers/media/dvb/frontends/tda827x.c | |||
@@ -578,8 +578,7 @@ static void tda827xa_lna_gain(struct dvb_frontend *fe, int high, | |||
578 | else | 578 | else |
579 | arg = 0; | 579 | arg = 0; |
580 | if (priv->cfg->tuner_callback) | 580 | if (priv->cfg->tuner_callback) |
581 | priv->cfg->tuner_callback(priv->i2c_adap->algo_data, | 581 | priv->cfg->tuner_callback(priv, 1, arg); |
582 | 1, arg); | ||
583 | buf[1] = high ? 0 : 1; | 582 | buf[1] = high ? 0 : 1; |
584 | if (*priv->cfg->config == 2) | 583 | if (*priv->cfg->config == 2) |
585 | buf[1] = high ? 1 : 0; | 584 | buf[1] = high ? 1 : 0; |
@@ -587,8 +586,7 @@ static void tda827xa_lna_gain(struct dvb_frontend *fe, int high, | |||
587 | break; | 586 | break; |
588 | case 3: /* switch with GPIO of saa713x */ | 587 | case 3: /* switch with GPIO of saa713x */ |
589 | if (priv->cfg->tuner_callback) | 588 | if (priv->cfg->tuner_callback) |
590 | priv->cfg->tuner_callback(priv->i2c_adap->algo_data, | 589 | priv->cfg->tuner_callback(priv, 0, high); |
591 | 0, high); | ||
592 | break; | 590 | break; |
593 | } | 591 | } |
594 | } | 592 | } |
diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c index ef1fd5a93b1b..4817a0e046a8 100644 --- a/drivers/media/video/saa7134/saa7134-core.c +++ b/drivers/media/video/saa7134/saa7134-core.c | |||
@@ -145,7 +145,8 @@ void saa7134_set_gpio(struct saa7134_dev *dev, int bit_no, int value) | |||
145 | int saa7134_tuner_callback(void *ptr, int command, int arg) | 145 | int saa7134_tuner_callback(void *ptr, int command, int arg) |
146 | { | 146 | { |
147 | u8 sync_control; | 147 | u8 sync_control; |
148 | struct saa7134_dev *dev = ptr; | 148 | struct i2c_algo_bit_data *i2c_algo = priv; |
149 | struct saa7134_dev *dev = i2c_algo->data; | ||
149 | 150 | ||
150 | switch (dev->tuner_type) { | 151 | switch (dev->tuner_type) { |
151 | case TUNER_PHILIPS_TDA8290: | 152 | case TUNER_PHILIPS_TDA8290: |