usb: gadget: ncm: correct endianess conversion
authorDmytro Milinevskyy <milinevskyy@gmail.com>
Thu, 4 Oct 2012 22:44:04 +0000 (01:44 +0300)
committerFelipe Balbi <balbi@ti.com>
Thu, 8 Nov 2012 14:05:39 +0000 (16:05 +0200)
commitf72e3b78867142a19b77f1de0698ce8b03dc6cbd
treed516544d63e566385e5a745e9b7dfed94ee60899
parent23834e533184bd2185bce500c789f86b3668739b
usb: gadget: ncm: correct endianess conversion

Convert USB descriptor's fields to CPU byte order before using locally in USB
NCM gadget driver.

Tested on MIPS32 big-endian device.

Signed-off-by: Dmytro Milinevskyy <milinevskyy@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_ncm.c