Commit 6cf2a101 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

V4L/DVB (5133): M920x: move qt1010_tuner_attach function into qt1010.h

The megasky_tuner_attach function is not specific to this device.
This patch renames it to qt1010_tuner_attach and moves it into the qt1010
header file.
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 94a47dc4
...@@ -246,15 +246,6 @@ static int megasky_frontend_attach(struct dvb_usb_adapter *adap) ...@@ -246,15 +246,6 @@ static int megasky_frontend_attach(struct dvb_usb_adapter *adap)
return -EIO; return -EIO;
} }
static int megasky_tuner_attach(struct dvb_usb_adapter *adap)
{
adap->pll_addr = 0xc4;
adap->pll_desc = NULL;
adap->fe->ops.tuner_ops.set_params = qt1010_set_params;
return 0;
}
static int m9206_set_filter(struct dvb_usb_adapter *adap, int type, int idx, int pid) static int m9206_set_filter(struct dvb_usb_adapter *adap, int type, int idx, int pid)
{ {
int ret = 0; int ret = 0;
...@@ -452,7 +443,7 @@ static struct dvb_usb_device_properties megasky_properties = { ...@@ -452,7 +443,7 @@ static struct dvb_usb_device_properties megasky_properties = {
.pid_filter_ctrl = m9206_pid_filter_ctrl, .pid_filter_ctrl = m9206_pid_filter_ctrl,
.frontend_attach = megasky_frontend_attach, .frontend_attach = megasky_frontend_attach,
.tuner_attach = megasky_tuner_attach, .tuner_attach = qt1010_tuner_attach,
.stream = { .stream = {
.type = USB_BULK, .type = USB_BULK,
......
...@@ -215,4 +215,12 @@ static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parame ...@@ -215,4 +215,12 @@ static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parame
return 0; return 0;
} }
static int qt1010_tuner_attach(struct dvb_usb_adapter *adap)
{
adap->pll_addr = 0xc4;
adap->pll_desc = NULL;
adap->fe->ops.tuner_ops.set_params = qt1010_set_params;
return 0;
}
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment