V4L/DVB (13105): dvb-usb: add fe_ioctl_override callback to dvb_usb_adapter_properties
authorMichael Krufky <mkrufky@kernellabs.com>
Mon, 7 Sep 2009 16:32:29 +0000 (13:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:22 +0000 (18:40 -0200)
Allow dvb-usb adapter drivers to specify a fe_ioctl_override callback
to enable device-specific handling of DVB frontend operations.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
drivers/media/dvb/dvb-usb/dvb-usb.h

index 8a7d87bcd1d98b71c3bbbd6b62150ad8c9e8fba9..df1ec3e69f4ac4d64156106f50607cba9ace282b 100644 (file)
@@ -88,6 +88,7 @@ int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap, short *adapter_nums)
                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,adap->dvb_adap.proposed_mac) == 0)
index fe2b87efb3f1ad81df0be039b9ac9e5303b04d77..0143aef19ecdde0e03d2c7e9a4b39eee72fe40e8 100644 (file)
@@ -162,6 +162,9 @@ struct dvb_usb_adapter_properties {
        struct usb_data_stream_properties stream;
 
        int size_of_priv;
+
+       int (*fe_ioctl_override) (struct dvb_frontend *,
+                                 unsigned int, void *, unsigned int);
 };
 
 /**