[media] dvb_usb_v2: move fe_ioctl_override() callback
authorAntti Palosaari <crope@iki.fi>
Fri, 15 Jun 2012 05:10:50 +0000 (02:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:33 +0000 (07:56 -0300)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb.h
drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
drivers/media/dvb/dvb-usb/dvb_usb_init.c

index 8ec8deefaf6ab5ad2f1a1b0f6f8ba18996f38d95..98504b59b1027f6f068b0bd4f8de2bc624e0cc79 100644 (file)
@@ -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
index 6149236e4ef82c6518627f1541f9b55fbe52ed91..d436a1582022638fa6bdd8e44c18d67c188fd343 100644 (file)
@@ -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,
index 1297b95aff48aaa1a1fff4e680ee58a2b951a037..e393fb55739877f0cd2d9714fcda3cf652324a42 100644 (file)
@@ -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++;
        }