aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 2d1ac5058534..724637792996 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -287,15 +287,14 @@ struct usb_bus {
287 287
288 struct dentry *usbfs_dentry; /* usbfs dentry entry for the bus */ 288 struct dentry *usbfs_dentry; /* usbfs dentry entry for the bus */
289 289
290 struct class_device class_dev; /* class device for this bus */ 290 struct class_device *class_dev; /* class device for this bus */
291 struct kref kref; /* handles reference counting this bus */
291 void (*release)(struct usb_bus *bus); /* function to destroy this bus's memory */ 292 void (*release)(struct usb_bus *bus); /* function to destroy this bus's memory */
292#if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE) 293#if defined(CONFIG_USB_MON)
293 struct mon_bus *mon_bus; /* non-null when associated */ 294 struct mon_bus *mon_bus; /* non-null when associated */
294 int monitored; /* non-zero when monitored */ 295 int monitored; /* non-zero when monitored */
295#endif 296#endif
296}; 297};
297#define to_usb_bus(d) container_of(d, struct usb_bus, class_dev)
298
299 298
300/* -------------------------------------------------------------------------- */ 299/* -------------------------------------------------------------------------- */
301 300
@@ -939,17 +938,17 @@ static inline void usb_fill_int_urb (struct urb *urb,
939} 938}
940 939
941extern void usb_init_urb(struct urb *urb); 940extern void usb_init_urb(struct urb *urb);
942extern struct urb *usb_alloc_urb(int iso_packets, int mem_flags); 941extern struct urb *usb_alloc_urb(int iso_packets, unsigned mem_flags);
943extern void usb_free_urb(struct urb *urb); 942extern void usb_free_urb(struct urb *urb);
944#define usb_put_urb usb_free_urb 943#define usb_put_urb usb_free_urb
945extern struct urb *usb_get_urb(struct urb *urb); 944extern struct urb *usb_get_urb(struct urb *urb);
946extern int usb_submit_urb(struct urb *urb, int mem_flags); 945extern int usb_submit_urb(struct urb *urb, unsigned mem_flags);
947extern int usb_unlink_urb(struct urb *urb); 946extern int usb_unlink_urb(struct urb *urb);
948extern void usb_kill_urb(struct urb *urb); 947extern void usb_kill_urb(struct urb *urb);
949 948
950#define HAVE_USB_BUFFERS 949#define HAVE_USB_BUFFERS
951void *usb_buffer_alloc (struct usb_device *dev, size_t size, 950void *usb_buffer_alloc (struct usb_device *dev, size_t size,
952 int mem_flags, dma_addr_t *dma); 951 unsigned mem_flags, dma_addr_t *dma);
953void usb_buffer_free (struct usb_device *dev, size_t size, 952void usb_buffer_free (struct usb_device *dev, size_t size,
954 void *addr, dma_addr_t dma); 953 void *addr, dma_addr_t dma);
955 954
@@ -1056,7 +1055,7 @@ int usb_sg_init (
1056 struct scatterlist *sg, 1055 struct scatterlist *sg,
1057 int nents, 1056 int nents,
1058 size_t length, 1057 size_t length,
1059 int mem_flags 1058 unsigned mem_flags
1060); 1059);
1061void usb_sg_cancel (struct usb_sg_request *io); 1060void usb_sg_cancel (struct usb_sg_request *io);
1062void usb_sg_wait (struct usb_sg_request *io); 1061void usb_sg_wait (struct usb_sg_request *io);