From: Eric Lescouet <Eric.Lescouet@virtuallogix.com> Date: Sat, 24 Apr 2010 21:34:27 +0000 (+0200) Subject: USB: make hub.h public (drivers dependency) X-Git-Tag: v2.6.35-rc1~471^2~224 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d65d7e7ef3dc5e61e4dfaac54ec6d3e97f9a1108;p=users%2Fwilly%2Flinux.git USB: make hub.h public (drivers dependency) The usbcore headers: hcd.h and hub.h are shared between usbcore, HCDs and a couple of other drivers (e.g. USBIP modules). So, it makes sense to move them into a more public location and to cleanup dependency of those modules on kernel internal headers. This patch moves hub.h from drivers/usb/core into include/linux/usb/ Signed-of-by: Eric Lescouet <eric@lescouet.org> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index c7e575cb3149..ca228f00b826 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h @@ -374,7 +374,7 @@ extern void usb_destroy_configuration(struct usb_device *dev); * HCD Root Hub support */ -#include <linux/../../drivers/usb/core/hub.h> +#include <linux/usb/hub.h> /* (shifted) direction/type/recipient from the USB 2.0 spec, table 9.2 */ #define DeviceRequest \ diff --git a/drivers/usb/core/hub.h b/include/linux/usb/hub.h similarity index 100% rename from drivers/usb/core/hub.h rename to include/linux/usb/hub.h