Skip to content

Commit

Permalink
[media] dvb_usb_v2: use .driver_info to pass struct dvb_usb_device_pr…
Browse files Browse the repository at this point in the history
…operties

Use struct usb_device_id .driver_info to pass struct dvb_usb_device_properties
pointer for the DVB USB.

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 1bf325d commit 65871de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/dvb_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ struct dvb_usb_device {
};

extern int dvb_usbv2_device_init(struct usb_interface *,
struct dvb_usb_device_properties *,
const struct usb_device_id *,
struct module *,
short *adapter_nums);
extern void dvb_usbv2_device_exit(struct usb_interface *);
Expand Down
4 changes: 3 additions & 1 deletion drivers/media/dvb/dvb-usb/dvb_usb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,15 @@ int dvb_usb_device_power_ctrl(struct dvb_usb_device *d, int onoff)
* USB
*/
int dvb_usbv2_device_init(struct usb_interface *intf,
struct dvb_usb_device_properties *props,
const struct usb_device_id *id,
struct module *owner,
short *adapter_nums)
{
struct usb_device *udev = interface_to_usbdev(intf);
struct dvb_usb_device *d = NULL;
struct dvb_usb_device_description *desc = NULL;
struct dvb_usb_device_properties *props =
(struct dvb_usb_device_properties *) id->driver_info;

int ret = -ENOMEM, cold = 0;

Expand Down

0 comments on commit 65871de

Please sign in to comment.