aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/usb.h')
-rw-r--r--drivers/usb/core/usb.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h
index b60ebb4de1a8..9fb195665fa8 100644
--- a/drivers/usb/core/usb.h
+++ b/drivers/usb/core/usb.h
@@ -1,3 +1,5 @@
1#include <linux/pm.h>
2
1/* Functions local to drivers/usb/core/ */ 3/* Functions local to drivers/usb/core/ */
2 4
3extern int usb_create_sysfs_dev_files(struct usb_device *dev); 5extern int usb_create_sysfs_dev_files(struct usb_device *dev);
@@ -42,15 +44,16 @@ extern void usb_host_cleanup(void);
42#ifdef CONFIG_PM 44#ifdef CONFIG_PM
43 45
44extern int usb_suspend(struct device *dev, pm_message_t msg); 46extern int usb_suspend(struct device *dev, pm_message_t msg);
45extern int usb_resume(struct device *dev); 47extern int usb_resume(struct device *dev, pm_message_t msg);
46 48
47extern void usb_autosuspend_work(struct work_struct *work); 49extern void usb_autosuspend_work(struct work_struct *work);
48extern void usb_autoresume_work(struct work_struct *work); 50extern void usb_autoresume_work(struct work_struct *work);
49extern int usb_port_suspend(struct usb_device *dev); 51extern int usb_port_suspend(struct usb_device *dev, pm_message_t msg);
50extern int usb_port_resume(struct usb_device *dev); 52extern int usb_port_resume(struct usb_device *dev, pm_message_t msg);
51extern int usb_external_suspend_device(struct usb_device *udev, 53extern int usb_external_suspend_device(struct usb_device *udev,
52 pm_message_t msg); 54 pm_message_t msg);
53extern int usb_external_resume_device(struct usb_device *udev); 55extern int usb_external_resume_device(struct usb_device *udev,
56 pm_message_t msg);
54 57
55static inline void usb_pm_lock(struct usb_device *udev) 58static inline void usb_pm_lock(struct usb_device *udev)
56{ 59{
@@ -64,12 +67,12 @@ static inline void usb_pm_unlock(struct usb_device *udev)
64 67
65#else 68#else
66 69
67static inline int usb_port_suspend(struct usb_device *udev) 70static inline int usb_port_suspend(struct usb_device *udev, pm_message_t msg)
68{ 71{
69 return 0; 72 return 0;
70} 73}
71 74
72static inline int usb_port_resume(struct usb_device *udev) 75static inline int usb_port_resume(struct usb_device *udev, pm_message_t msg)
73{ 76{
74 return 0; 77 return 0;
75} 78}