diff options
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index e87826e23d59..e656e7b4b1e4 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -426,7 +426,6 @@ struct usb_bus { | |||
426 | struct device *sysdev; /* as seen from firmware or bus */ | 426 | struct device *sysdev; /* as seen from firmware or bus */ |
427 | int busnum; /* Bus number (in order of reg) */ | 427 | int busnum; /* Bus number (in order of reg) */ |
428 | const char *bus_name; /* stable id (PCI slot_name etc) */ | 428 | const char *bus_name; /* stable id (PCI slot_name etc) */ |
429 | u8 uses_dma; /* Does the host controller use DMA? */ | ||
430 | u8 uses_pio_for_control; /* | 429 | u8 uses_pio_for_control; /* |
431 | * Does the host controller use PIO | 430 | * Does the host controller use PIO |
432 | * for control transfers? | 431 | * for control transfers? |
@@ -1151,6 +1150,8 @@ struct usbdrv_wrap { | |||
1151 | * @id_table: USB drivers use ID table to support hotplugging. | 1150 | * @id_table: USB drivers use ID table to support hotplugging. |
1152 | * Export this with MODULE_DEVICE_TABLE(usb,...). This must be set | 1151 | * Export this with MODULE_DEVICE_TABLE(usb,...). This must be set |
1153 | * or your driver's probe function will never get called. | 1152 | * or your driver's probe function will never get called. |
1153 | * @dev_groups: Attributes attached to the device that will be created once it | ||
1154 | * is bound to the driver. | ||
1154 | * @dynids: used internally to hold the list of dynamically added device | 1155 | * @dynids: used internally to hold the list of dynamically added device |
1155 | * ids for this driver. | 1156 | * ids for this driver. |
1156 | * @drvwrap: Driver-model core structure wrapper. | 1157 | * @drvwrap: Driver-model core structure wrapper. |
@@ -1198,6 +1199,7 @@ struct usb_driver { | |||
1198 | int (*post_reset)(struct usb_interface *intf); | 1199 | int (*post_reset)(struct usb_interface *intf); |
1199 | 1200 | ||
1200 | const struct usb_device_id *id_table; | 1201 | const struct usb_device_id *id_table; |
1202 | const struct attribute_group **dev_groups; | ||
1201 | 1203 | ||
1202 | struct usb_dynids dynids; | 1204 | struct usb_dynids dynids; |
1203 | struct usbdrv_wrap drvwrap; | 1205 | struct usbdrv_wrap drvwrap; |
@@ -1221,6 +1223,8 @@ struct usb_driver { | |||
1221 | * module is being unloaded. | 1223 | * module is being unloaded. |
1222 | * @suspend: Called when the device is going to be suspended by the system. | 1224 | * @suspend: Called when the device is going to be suspended by the system. |
1223 | * @resume: Called when the device is being resumed by the system. | 1225 | * @resume: Called when the device is being resumed by the system. |
1226 | * @dev_groups: Attributes attached to the device that will be created once it | ||
1227 | * is bound to the driver. | ||
1224 | * @drvwrap: Driver-model core structure wrapper. | 1228 | * @drvwrap: Driver-model core structure wrapper. |
1225 | * @supports_autosuspend: if set to 0, the USB core will not allow autosuspend | 1229 | * @supports_autosuspend: if set to 0, the USB core will not allow autosuspend |
1226 | * for devices bound to this driver. | 1230 | * for devices bound to this driver. |
@@ -1235,6 +1239,7 @@ struct usb_device_driver { | |||
1235 | 1239 | ||
1236 | int (*suspend) (struct usb_device *udev, pm_message_t message); | 1240 | int (*suspend) (struct usb_device *udev, pm_message_t message); |
1237 | int (*resume) (struct usb_device *udev, pm_message_t message); | 1241 | int (*resume) (struct usb_device *udev, pm_message_t message); |
1242 | const struct attribute_group **dev_groups; | ||
1238 | struct usbdrv_wrap drvwrap; | 1243 | struct usbdrv_wrap drvwrap; |
1239 | unsigned int supports_autosuspend:1; | 1244 | unsigned int supports_autosuspend:1; |
1240 | }; | 1245 | }; |