Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357385
b: refs/heads/master
c: 8c0d44e
h: refs/heads/master
i:
  357383: 31db925
v: v3
  • Loading branch information
Ezequiel Garcia authored and Mauro Carvalho Chehab committed Feb 5, 2013
1 parent 4e1ea38 commit 600fdac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d97046a371a44010bbfd18a75c2b107da30a606
refs/heads/master: 8c0d44e250735b09e255ce0483c47eb2f68d3fa7
2 changes: 1 addition & 1 deletion trunk/drivers/media/usb/uvc/uvc_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ static int uvc_ctrl_add_info(struct uvc_device *dev, struct uvc_control *ctrl,
{
int ret = 0;

memcpy(&ctrl->info, info, sizeof(*info));
ctrl->info = *info;
INIT_LIST_HEAD(&ctrl->info.mappings);

/* Allocate an array to save control values (cur, def, max, etc.) */
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/media/usb/uvc/uvc_v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);

Expand All @@ -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. */
Expand Down

0 comments on commit 600fdac

Please sign in to comment.