diff options
Diffstat (limited to 'drivers/media/common/tuners/tda827x.c')
-rw-r--r-- | drivers/media/common/tuners/tda827x.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/media/common/tuners/tda827x.c b/drivers/media/common/tuners/tda827x.c index 8555d9cf9051..4a74f65e759a 100644 --- a/drivers/media/common/tuners/tda827x.c +++ b/drivers/media/common/tuners/tda827x.c | |||
@@ -447,17 +447,19 @@ static void tda827xa_lna_gain(struct dvb_frontend *fe, int high, | |||
447 | else | 447 | else |
448 | arg = 0; | 448 | arg = 0; |
449 | } | 449 | } |
450 | if (priv->cfg->tuner_callback) | 450 | if (fe->callback) |
451 | priv->cfg->tuner_callback(priv->i2c_adap->algo_data, | 451 | fe->callback(priv->i2c_adap->algo_data, |
452 | gp_func, arg); | 452 | DVB_FRONTEND_COMPONENT_TUNER, |
453 | gp_func, arg); | ||
453 | buf[1] = high ? 0 : 1; | 454 | buf[1] = high ? 0 : 1; |
454 | if (priv->cfg->config == 2) | 455 | if (priv->cfg->config == 2) |
455 | buf[1] = high ? 1 : 0; | 456 | buf[1] = high ? 1 : 0; |
456 | i2c_transfer(priv->i2c_adap, &msg, 1); | 457 | i2c_transfer(priv->i2c_adap, &msg, 1); |
457 | break; | 458 | break; |
458 | case 3: /* switch with GPIO of saa713x */ | 459 | case 3: /* switch with GPIO of saa713x */ |
459 | if (priv->cfg->tuner_callback) | 460 | if (fe->callback) |
460 | priv->cfg->tuner_callback(priv->i2c_adap->algo_data, 0, high); | 461 | fe->callback(priv->i2c_adap->algo_data, |
462 | DVB_FRONTEND_COMPONENT_TUNER, 0, high); | ||
461 | break; | 463 | break; |
462 | } | 464 | } |
463 | } | 465 | } |