diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 332eaea61021..e6419ac89ea2 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -542,6 +542,9 @@ extern struct usb_device *usb_find_device(u16 vendor_id, u16 product_id); | |||
542 | 542 | ||
543 | /* USB autosuspend and autoresume */ | 543 | /* USB autosuspend and autoresume */ |
544 | #ifdef CONFIG_USB_SUSPEND | 544 | #ifdef CONFIG_USB_SUSPEND |
545 | extern int usb_enable_autosuspend(struct usb_device *udev); | ||
546 | extern int usb_disable_autosuspend(struct usb_device *udev); | ||
547 | |||
545 | extern int usb_autopm_get_interface(struct usb_interface *intf); | 548 | extern int usb_autopm_get_interface(struct usb_interface *intf); |
546 | extern void usb_autopm_put_interface(struct usb_interface *intf); | 549 | extern void usb_autopm_put_interface(struct usb_interface *intf); |
547 | extern int usb_autopm_get_interface_async(struct usb_interface *intf); | 550 | extern int usb_autopm_get_interface_async(struct usb_interface *intf); |
@@ -565,6 +568,11 @@ static inline void usb_mark_last_busy(struct usb_device *udev) | |||
565 | 568 | ||
566 | #else | 569 | #else |
567 | 570 | ||
571 | static inline int usb_enable_autosuspend(struct usb_device *udev) | ||
572 | { return 0; } | ||
573 | static inline int usb_disable_autosuspend(struct usb_device *udev) | ||
574 | { return 0; } | ||
575 | |||
568 | static inline int usb_autopm_get_interface(struct usb_interface *intf) | 576 | static inline int usb_autopm_get_interface(struct usb_interface *intf) |
569 | { return 0; } | 577 | { return 0; } |
570 | static inline int usb_autopm_get_interface_async(struct usb_interface *intf) | 578 | static inline int usb_autopm_get_interface_async(struct usb_interface *intf) |