[media] uvcvideo: Replace memcpy with struct assignment
authorEzequiel Garcia <elezegarcia@gmail.com>
Mon, 14 Jan 2013 18:22:55 +0000 (15:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 16:31:36 +0000 (14:31 -0200)
commit8c0d44e250735b09e255ce0483c47eb2f68d3fa7
treef17c238670b5e56b3600c13517e0de4c853348b0
parent5d97046a371a44010bbfd18a75c2b107da30a606
[media] uvcvideo: Replace memcpy with struct assignment

This kind of memcpy() is error-prone. Its replacement with a struct
assignment is prefered because it's type-safe and much easier to read.

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/uvc/uvc_ctrl.c
drivers/media/usb/uvc/uvc_v4l2.c