Commit a1da8146 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] au6610: use DVB USB macros

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 05cd62e0
...@@ -137,7 +137,7 @@ static struct zl10353_config au6610_zl10353_config = { ...@@ -137,7 +137,7 @@ static struct zl10353_config au6610_zl10353_config = {
static int au6610_zl10353_frontend_attach(struct dvb_usb_adapter *adap) static int au6610_zl10353_frontend_attach(struct dvb_usb_adapter *adap)
{ {
adap->fe[0] = dvb_attach(zl10353_attach, &au6610_zl10353_config, adap->fe[0] = dvb_attach(zl10353_attach, &au6610_zl10353_config,
&adap->dev->i2c_adap); &adap_to_d(adap)->i2c_adap);
if (adap->fe[0] == NULL) if (adap->fe[0] == NULL)
return -ENODEV; return -ENODEV;
...@@ -150,9 +150,9 @@ static struct qt1010_config au6610_qt1010_config = { ...@@ -150,9 +150,9 @@ static struct qt1010_config au6610_qt1010_config = {
static int au6610_qt1010_tuner_attach(struct dvb_usb_adapter *adap) static int au6610_qt1010_tuner_attach(struct dvb_usb_adapter *adap)
{ {
return dvb_attach(qt1010_attach, return dvb_attach(qt1010_attach, adap->fe[0],
adap->fe[0], &adap->dev->i2c_adap, &adap_to_d(adap)->i2c_adap,
&au6610_qt1010_config) == NULL ? -ENODEV : 0; &au6610_qt1010_config) == NULL ? -ENODEV : 0;
} }
static int au6610_init(struct dvb_usb_device *d) static int au6610_init(struct dvb_usb_device *d)
...@@ -175,18 +175,7 @@ static struct dvb_usb_device_properties au6610_props = { ...@@ -175,18 +175,7 @@ static struct dvb_usb_device_properties au6610_props = {
.num_adapters = 1, .num_adapters = 1,
.adapter = { .adapter = {
{ {
.stream = { .stream = DVB_USB_STREAM_ISOC(0x82, 5, 40, 942, 1),
.type = USB_ISOC,
.count = 5,
.endpoint = 0x82,
.u = {
.isoc = {
.framesperurb = 40,
.framesize = 942,
.interval = 1,
}
}
},
}, },
}, },
}; };
......
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