diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-02-01 00:43:50 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-02-03 07:29:23 (GMT) |
commit | 9c0a835a9d9aed41bcf9c287f5069133a6e2a87b (patch) | |
tree | 83b0753cdd9e2edbcd43fc8537265dc5975d29d9 | |
parent | 976d98cb726601972fafb28173d4526ce3603415 (diff) | |
download | linux-fsl-qoriq-9c0a835a9d9aed41bcf9c287f5069133a6e2a87b.tar.xz |
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>
-rw-r--r-- | include/linux/usb/ch9.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index 61b2905..3b6f628 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h @@ -589,7 +589,7 @@ static inline int usb_endpoint_is_isoc_out( */ static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) { - return le16_to_cpu(epd->wMaxPacketSize); + return __le16_to_cpu(epd->wMaxPacketSize); } /*-------------------------------------------------------------------------*/ |