uvc-gadget: Use uvc_fill_streaming_control in uvc_events_process_data
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 23 May 2018 20:38:08 +0000 (23:38 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 23 May 2018 22:26:38 +0000 (01:26 +0300)
commitc09cb33c4a54139b00fc9a7212ef7ab05a1e07cb
tree3dddca8cb9a275a1c479911b0c58ccd9338516e2
parent3d6471013462f614bb14b3a775881b02c724df7a
uvc-gadget: Use uvc_fill_streaming_control in uvc_events_process_data

The uvc_events_process_data() function looks up format and frame
descriptors to fill the streaming control structure. This duplicates
code from the uvc_fill_streaming_control() function. Refactor the
function to make it usable in uvc_events_process_data() and remove the
duplicated code.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
uvc-gadget.c