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

[media] dvb-usb-v2: add pointer to 'struct usb_interface' for driver usage

Top level pointer on USB probe is struct usb_interface *. Add that
pointer to struct dvb_usb_device that drivers could use it, for
dev_* logging and more.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent ab98180a
...@@ -354,6 +354,7 @@ struct dvb_usb_adapter { ...@@ -354,6 +354,7 @@ struct dvb_usb_adapter {
* @name: device name * @name: device name
* @rc_map: name of rc codes table * @rc_map: name of rc codes table
* @rc_polling_active: set when RC polling is active * @rc_polling_active: set when RC polling is active
* @intf: pointer to the device's struct usb_interface
* @udev: pointer to the device's struct usb_device * @udev: pointer to the device's struct usb_device
* @rc: remote controller configuration * @rc: remote controller configuration
* @powered: indicated whether the device is power or not * @powered: indicated whether the device is power or not
...@@ -370,6 +371,7 @@ struct dvb_usb_device { ...@@ -370,6 +371,7 @@ struct dvb_usb_device {
const char *name; const char *name;
const char *rc_map; const char *rc_map;
bool rc_polling_active; bool rc_polling_active;
struct usb_interface *intf;
struct usb_device *udev; struct usb_device *udev;
struct dvb_usb_rc rc; struct dvb_usb_rc rc;
int powered; int powered;
......
...@@ -868,6 +868,7 @@ int dvb_usbv2_probe(struct usb_interface *intf, ...@@ -868,6 +868,7 @@ int dvb_usbv2_probe(struct usb_interface *intf,
goto err; goto err;
} }
d->intf = intf;
d->name = driver_info->name; d->name = driver_info->name;
d->rc_map = driver_info->rc_map; d->rc_map = driver_info->rc_map;
d->udev = udev; d->udev = udev;
......
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