|
@@ -315,7 +315,7 @@ static int uvc_v4l2_set_format(struct uvc_streaming *stream,
|
|
|
goto done;
|
|
|
}
|
|
|
|
|
|
- memcpy(&stream->ctrl, &probe, sizeof probe);
|
|
|
+ stream->ctrl = probe;
|
|
|
stream->cur_format = format;
|
|
|
stream->cur_frame = frame;
|
|
|
|
|
@@ -387,7 +387,7 @@ static int uvc_v4l2_set_streamparm(struct uvc_streaming *stream,
|
|
|
return -EBUSY;
|
|
|
}
|
|
|
|
|
|
- memcpy(&probe, &stream->ctrl, sizeof probe);
|
|
|
+ probe = stream->ctrl;
|
|
|
probe.dwFrameInterval =
|
|
|
uvc_try_frame_interval(stream->cur_frame, interval);
|
|
|
|
|
@@ -398,7 +398,7 @@ static int uvc_v4l2_set_streamparm(struct uvc_streaming *stream,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- memcpy(&stream->ctrl, &probe, sizeof probe);
|
|
|
+ stream->ctrl = probe;
|
|
|
mutex_unlock(&stream->mutex);
|
|
|
|
|
|
/* Return the actual frame period. */
|