usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 1 Feb 2012 00:43:50 +0000 (16:43 -0800)
committerFelipe Balbi <balbi@ti.com>
Fri, 3 Feb 2012 07:29:23 +0000 (09:29 +0200)
commit9c0a835a9d9aed41bcf9c287f5069133a6e2a87b
tree83b0753cdd9e2edbcd43fc8537265dc5975d29d9
parent976d98cb726601972fafb28173d4526ce3603415
usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu()

The usb/ch9.h will be installed to /usr/include/linux,
and be used from user space.
But le16_to_cpu() is only defined for kernel code.
Without this patch, user space compile will be broken.
Special thanks to Stefan Becker

Cc: stable@vger.kernel.org # 3.2
Reported-by: Stefan Becker <chemobejk@gmail.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/usb/ch9.h