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

[media] dvb_usb_v2: move fe_ioctl_override() callback

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d70521a3
...@@ -100,9 +100,6 @@ struct dvb_usb_adapter_properties { ...@@ -100,9 +100,6 @@ struct dvb_usb_adapter_properties {
int (*pid_filter_ctrl) (struct dvb_usb_adapter *, int); int (*pid_filter_ctrl) (struct dvb_usb_adapter *, int);
int (*pid_filter) (struct dvb_usb_adapter *, int, u16, 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; struct usb_data_stream_properties stream;
}; };
...@@ -189,6 +186,8 @@ struct dvb_usb_device_properties { ...@@ -189,6 +186,8 @@ struct dvb_usb_device_properties {
int (*tuner_attach) (struct dvb_usb_adapter *); int (*tuner_attach) (struct dvb_usb_adapter *);
int (*frontend_ctrl) (struct dvb_frontend *, int); int (*frontend_ctrl) (struct dvb_frontend *, int);
int (*streaming_ctrl) (struct dvb_usb_adapter *, 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 WARM 0
#define COLD 1 #define COLD 1
......
...@@ -204,7 +204,6 @@ int dvb_usbv2_adapter_dvb_init(struct dvb_usb_adapter *adap) ...@@ -204,7 +204,6 @@ int dvb_usbv2_adapter_dvb_init(struct dvb_usb_adapter *adap)
goto err; goto err;
} }
adap->dvb_adap.priv = adap; 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) {
if (adap->dev->props->read_mac_address(adap->dev, if (adap->dev->props->read_mac_address(adap->dev,
......
...@@ -279,6 +279,8 @@ static int dvb_usbv2_adapter_init(struct dvb_usb_device *d) ...@@ -279,6 +279,8 @@ static int dvb_usbv2_adapter_init(struct dvb_usb_device *d)
if (adap->fe[1]) if (adap->fe[1])
adap->dvb_adap.mfe_shared = 1; adap->dvb_adap.mfe_shared = 1;
adap->dvb_adap.fe_ioctl_override = d->props->fe_ioctl_override;
d->num_adapters_initialized++; d->num_adapters_initialized++;
} }
......
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