summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/usb.h
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-05-11 16:08:27 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 17:06:13 -0700
commitda0af6e78ef311d97754aa03e10eade82cc99e16 (patch)
tree52d904e831d619452299844c7f55b61be2d62a53 /drivers/usb/core/usb.h
parent38ac0f1b90dc9486cc039f1a4d8b0202813e5b67 (diff)
downloadlinux-da0af6e78ef311d97754aa03e10eade82cc99e16.tar.gz
linux-da0af6e78ef311d97754aa03e10eade82cc99e16.tar.bz2
linux-da0af6e78ef311d97754aa03e10eade82cc99e16.zip
usb: Bind devices to ACPI devices when possible
Built-in USB devices will typically have a representation in the system ACPI tables. Add support for binding the two together so the USB code can make use of the associated methods. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/usb.h')
-rw-r--r--drivers/usb/core/usb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h
index 71648dcbe438..5c5c538ea73d 100644
--- a/drivers/usb/core/usb.h
+++ b/drivers/usb/core/usb.h
@@ -156,3 +156,10 @@ extern void usb_notify_remove_device(struct usb_device *udev);
extern void usb_notify_add_bus(struct usb_bus *ubus);
extern void usb_notify_remove_bus(struct usb_bus *ubus);
+#ifdef CONFIG_ACPI
+extern int usb_acpi_register(void);
+extern void usb_acpi_unregister(void);
+#else
+static inline int usb_acpi_register(void) { return 0; };
+static inline void usb_acpi_unregister(void) { };
+#endif