Skip to content

Commit

Permalink
can: kvaser_usb: Add pointer to struct usb_interface into struct kvas…
Browse files Browse the repository at this point in the history
…er_usb

Add pointer to struct usb_interface into struct kvaser_usb.

Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Jimmy Assarsson authored and Marc Kleine-Budde committed Jul 27, 2018
1 parent 75d2b4c commit 0e30619
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/can/usb/kvaser_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ struct kvaser_usb_tx_urb_context {

struct kvaser_usb {
struct usb_device *udev;
struct usb_interface *intf;
struct kvaser_usb_net_priv *nets[MAX_NET_DEVICES];

struct usb_endpoint_descriptor *bulk_in, *bulk_out;
Expand Down Expand Up @@ -1962,6 +1963,8 @@ static int kvaser_usb_probe(struct usb_interface *intf,
return -ENODEV;
}

dev->intf = intf;

err = kvaser_usb_get_endpoints(intf, &dev->bulk_in, &dev->bulk_out);
if (err) {
dev_err(&intf->dev, "Cannot get usb endpoint(s)");
Expand Down

0 comments on commit 0e30619

Please sign in to comment.