Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195432
b: refs/heads/master
c: 1e42901
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox authored and Greg Kroah-Hartman committed May 20, 2010
1 parent 532971c commit 0c3d107
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe54b058de9d1df5fef9e2a559651f4b7c9f04b1
refs/heads/master: 1e429018b646bdf903554e92ead1cda96cc552dc
7 changes: 5 additions & 2 deletions trunk/include/linux/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ struct usb_interface {
struct work_struct reset_ws; /* for resets in atomic context */
};
#define to_usb_interface(d) container_of(d, struct usb_interface, dev)
#define interface_to_usbdev(intf) \
container_of(intf->dev.parent, struct usb_device, dev)

static inline void *usb_get_intfdata(struct usb_interface *intf)
{
Expand Down Expand Up @@ -493,6 +491,11 @@ struct usb_device {
};
#define to_usb_device(d) container_of(d, struct usb_device, dev)

static inline struct usb_device *interface_to_usbdev(struct usb_interface *intf)
{
return to_usb_device(intf->dev.parent);
}

extern struct usb_device *usb_get_dev(struct usb_device *dev);
extern void usb_put_dev(struct usb_device *dev);

Expand Down

0 comments on commit 0c3d107

Please sign in to comment.