Skip to content

Commit

Permalink
[media] dvb_usb_v2: move fe_ioctl_override() callback
Browse files Browse the repository at this point in the history
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent d70521a commit 6dca4ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions drivers/media/dvb/dvb-usb/dvb_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions drivers/media/dvb/dvb-usb/dvb_usb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}

Expand Down

0 comments on commit 6dca4ea

Please sign in to comment.