aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-09-25 08:47:07 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:37:09 -0400
commit767f3b3bf23244d52be0492df20b0eaf14f501c5 (patch)
treea53cb57f24b2ef8ac249eabc473130d52cb197f0 /drivers/media/dvb
parentd7cba043d7ec840d67bd5143779d1febe7d83407 (diff)
V4L/DVB (9051): dib0700: use dvb_frontend->callback for xc5000 gpio reset
The tuner_callback function pointer from struct xc5000_config has been removed. Use dvb_frontend->callback instead. Also, mark function dib0700_xc5000_tuner_callback as static int. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/dib0700_devices.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c
index 8b74e13a6460..9891ca0924a3 100644
--- a/drivers/media/dvb/dvb-usb/dib0700_devices.c
+++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c
@@ -1176,7 +1176,8 @@ static int s5h1411_frontend_attach(struct dvb_usb_adapter *adap)
1176 return adap->fe == NULL ? -ENODEV : 0; 1176 return adap->fe == NULL ? -ENODEV : 0;
1177} 1177}
1178 1178
1179int dib0700_xc5000_tuner_callback(void *priv, int command, int arg) 1179static int dib0700_xc5000_tuner_callback(void *priv, int component,
1180 int command, int arg)
1180{ 1181{
1181 struct dvb_usb_adapter *adap = priv; 1182 struct dvb_usb_adapter *adap = priv;
1182 1183
@@ -1192,14 +1193,16 @@ int dib0700_xc5000_tuner_callback(void *priv, int command, int arg)
1192static struct xc5000_config s5h1411_xc5000_tunerconfig = { 1193static struct xc5000_config s5h1411_xc5000_tunerconfig = {
1193 .i2c_address = 0x64, 1194 .i2c_address = 0x64,
1194 .if_khz = 5380, 1195 .if_khz = 5380,
1195 .tuner_callback = dib0700_xc5000_tuner_callback
1196}; 1196};
1197 1197
1198static int xc5000_tuner_attach(struct dvb_usb_adapter *adap) 1198static int xc5000_tuner_attach(struct dvb_usb_adapter *adap)
1199{ 1199{
1200 return dvb_attach(xc5000_attach, adap->fe, &adap->dev->i2c_adap, 1200 return dvb_attach(xc5000_attach, adap->fe, &adap->dev->i2c_adap,
1201 &s5h1411_xc5000_tunerconfig, adap) 1201 &s5h1411_xc5000_tunerconfig)
1202 == NULL ? -ENODEV : 0; 1202 == NULL ? -ENODEV : 0;
1203
1204 /* FIXME: generalize & move to common area */
1205 adap->fe->callback = dib0700_xc5000_tuner_callback;
1203} 1206}
1204 1207
1205/* DVB-USB and USB stuff follows */ 1208/* DVB-USB and USB stuff follows */