usb: gadget: uvc: configfs: Fix operation on big endian platforms
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 18 Sep 2018 11:40:58 +0000 (14:40 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 25 Sep 2018 15:48:08 +0000 (18:48 +0300)
commit78c9e7ce00c3fabf5c6dd3a6eab3a3dcf21dd213
treecba129adc14f73875c1423987b9872dadc4c344f
parentf823b75f43284c43f3792cae990d63c84dd1267d
usb: gadget: uvc: configfs: Fix operation on big endian platforms

USB descriptors are stored in little endian, requiring the use of
conversion macros. Those macros are incorrectly used for values stored
in native endian structures within the driver. Operation on big endian
platforms is thus broken. Fix it by removing the conversion macros where
they're not needed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Tested-by: Paul Elder <paul.elder@ideasonboard.com>
drivers/usb/gadget/function/uvc_configfs.c