summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/tuners/xc5000.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-10-04 14:51:50 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-04 14:51:50 -0300
commit88778479f1fa5916aa079b9c17929716ebc182a6 (patch)
tree8960ed0705c81262a8b534cf182c6b56d07bb6b4 /linux/drivers/media/common/tuners/xc5000.c
parent5fa51c4127709c7bcbcbbc6e14b4780908e36990 (diff)
parentedd1d19fe9c951f51b87b6a614f3e5abc2a6c12e (diff)
downloadmediapointer-dvb-s2-88778479f1fa5916aa079b9c17929716ebc182a6.tar.gz
mediapointer-dvb-s2-88778479f1fa5916aa079b9c17929716ebc182a6.tar.bz2
merge: http://linuxtv.org/hg/~tmerle/cinergyT2
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/common/tuners/xc5000.c')
-rw-r--r--linux/drivers/media/common/tuners/xc5000.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/drivers/media/common/tuners/xc5000.c b/linux/drivers/media/common/tuners/xc5000.c
index 7d4d82d23..f3a3c47fe 100644
--- a/linux/drivers/media/common/tuners/xc5000.c
+++ b/linux/drivers/media/common/tuners/xc5000.c
@@ -58,8 +58,6 @@ struct xc5000_priv {
u32 bandwidth;
u8 video_standard;
u8 rf_mode;
-
- int (*tuner_callback) (void *priv, int command, int arg);
};
/* Misc Defines */
@@ -232,10 +230,11 @@ static void xc5000_TunerReset(struct dvb_frontend *fe)
dprintk(1, "%s()\n", __func__);
- if (priv->tuner_callback) {
- ret = priv->tuner_callback(((fe->dvb) && (fe->dvb->priv)) ?
+ if (fe->callback) {
+ ret = fe->callback(((fe->dvb) && (fe->dvb->priv)) ?
fe->dvb->priv :
priv->i2c_props.adap->algo_data,
+ DVB_FRONTEND_COMPONENT_TUNER,
XC5000_TUNER_RESET, 0);
if (ret)
printk(KERN_ERR "xc5000: reset failed\n");
@@ -994,7 +993,6 @@ struct dvb_frontend *xc5000_attach(struct dvb_frontend *fe,
/* new tuner instance */
priv->bandwidth = BANDWIDTH_6_MHZ;
priv->if_khz = cfg->if_khz;
- priv->tuner_callback = cfg->tuner_callback;
fe->tuner_priv = priv;
break;