]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: Fix endianness mismatches
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 16 Sep 2014 14:26:47 +0000 (17:26 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 16 Sep 2014 14:59:47 +0000 (09:59 -0500)
commitd12715878d88376206fafe15659f9deb4b85e0be
tree1125404e62ac8efb7a4aea546ecbf70553808f17
parente95ecba18096f186736d4f4fda2309569bb924be
usb: gadget: uvc: Fix endianness mismatches

The struct usb_endpoint_descriptor wMaxPacketSize field the struct
usb_ss_ep_comp_descriptor wBytesPerInterval field are stored in
little-endian format. Convert the values from CPU order to little endian
before storing the values.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_uvc.c