]> git.baikalelectronics.ru Git - kernel.git/commit
USB: move the definition of USB_MAXCHILDREN
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 27 Jun 2013 19:27:07 +0000 (15:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jul 2013 22:33:02 +0000 (15:33 -0700)
commit9c6b38d72e3a22923693ab8704b413da4f143f5d
tree69c6dfc6275116e073727d11d8f8febb4e71350a
parente45145f6fb107265eb5ebce4f7bf31d6625dfa05
USB: move the definition of USB_MAXCHILDREN

The USB_MAXCHILDREN symbol is used in include/uapi/linux/usb/ch11.h, a
user-mode header, even though it is defined in include/linux/usb.h,
which is kernel-only.  This causes compile-time errors when user
programs try to #include linux/usb/ch11.h.

This patch fixes the problem by moving the definition of USB_MAXCHILDREN
into ch11.h.  It also gets rid of unneeded parentheses.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb.h
include/uapi/linux/usb/ch11.h