summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-06-15 02:10:50 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-04 07:56:33 -0300
commit6dca4ea3ecb3d33ce49a9bb7d1f40a75bbea8aec (patch)
tree2eb9d588bd3135ae4e4d8209e70ff2bdb630ae03 /drivers/media/dvb/dvb-usb
parentd70521a396cecb11dc8bd4212d2502dc797d3d67 (diff)
downloadop-kernel-dev-6dca4ea3ecb3d33ce49a9bb7d1f40a75bbea8aec.zip
op-kernel-dev-6dca4ea3ecb3d33ce49a9bb7d1f40a75bbea8aec.tar.gz
[media] dvb_usb_v2: move fe_ioctl_override() callback
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb.h5
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb_dvb.c1
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb_init.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb.h b/drivers/media/dvb/dvb-usb/dvb_usb.h
index 8ec8dee..98504b5 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb_usb.h
@@ -100,9 +100,6 @@ struct dvb_usb_adapter_properties {
int (*pid_filter_ctrl) (struct dvb_usb_adapter *, int);
int (*pid_filter) (struct dvb_usb_adapter *, int, u16, int);
- int (*fe_ioctl_override) (struct dvb_frontend *,
- unsigned int, void *, unsigned int);
-
struct usb_data_stream_properties stream;
};
@@ -189,6 +186,8 @@ struct dvb_usb_device_properties {
int (*tuner_attach) (struct dvb_usb_adapter *);
int (*frontend_ctrl) (struct dvb_frontend *, int);
int (*streaming_ctrl) (struct dvb_usb_adapter *, int);
+ int (*fe_ioctl_override) (struct dvb_frontend *,
+ unsigned int, void *, unsigned int);
#define WARM 0
#define COLD 1
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c b/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
index 6149236..d436a15 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
+++ b/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
@@ -204,7 +204,6 @@ int dvb_usbv2_adapter_dvb_init(struct dvb_usb_adapter *adap)
goto err;
}
adap->dvb_adap.priv = adap;
- adap->dvb_adap.fe_ioctl_override = adap->props->fe_ioctl_override;
if (adap->dev->props->read_mac_address) {
if (adap->dev->props->read_mac_address(adap->dev,
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb_init.c b/drivers/media/dvb/dvb-usb/dvb_usb_init.c
index 1297b95a..e393fb5 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb_init.c
+++ b/drivers/media/dvb/dvb-usb/dvb_usb_init.c
@@ -279,6 +279,8 @@ static int dvb_usbv2_adapter_init(struct dvb_usb_device *d)
if (adap->fe[1])
adap->dvb_adap.mfe_shared = 1;
+ adap->dvb_adap.fe_ioctl_override = d->props->fe_ioctl_override;
+
d->num_adapters_initialized++;
}
OpenPOWER on IntegriCloud