linux/drivers/media/usb
Ezequiel Garcia 5c2edefed7 [media] pwc: 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.
Found by coccinelle. Hand patched and reviewed.
Tested by compilation only.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
identifier struct_name;
struct struct_name to;
struct struct_name from;
expression E;
@@
-memcpy(&(to), &(from), E);
+to = from;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-12-27 18:45:04 -02:00
..
au0828 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
b2c2 [media] Kconfig: Fix b2c2 common code selection 2012-08-21 08:38:31 -03:00
cpia2 [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
cx231xx [media] cx231xx: Replace memcpy with struct assignment 2012-12-27 18:44:11 -02:00
dvb-usb [media] m920x: add support for the VP-7049 Twinhan DVB-T USB Stick 2012-12-27 16:36:29 -02:00
dvb-usb-v2 [media] it913x: fix correct endpoint size when pid filter on 2012-12-23 19:48:04 -02:00
em28xx [media] em28xx: prefer bulk mode on webcams 2012-12-23 17:24:30 -02:00
gspca [media] gspca_sonixj: Add a small delay after i2c_w1 2012-12-21 13:40:19 -02:00
hdpvr [media] drivers/media/usb/hdpvr/hdpvr-core.c: fix error return code 2012-11-22 14:22:31 -02:00
pvrusb2 [media] pvr2: fix minor storage 2012-11-21 18:10:33 -02:00
pwc [media] pwc: Replace memcpy with struct assignment 2012-12-27 18:45:04 -02:00
s2255 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
siano [media] siano: fix RC compilation 2012-11-07 11:09:08 +01:00
sn9c102 [media] sn9c102: Replace memcpy with struct assignment 2012-12-27 18:44:46 -02:00
stk1160 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
stkwebcam [media] stk-webcam: Add an upside down dmi table, and add the Asus G1 to it 2012-12-21 13:34:30 -02:00
tlg2300 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
tm6000 [media] tm6000-dvb: Fix module unload 2012-12-21 18:45:31 -02:00
ttusb-budget [media] Kconfig: merge all customise options into just one 2012-08-21 08:05:06 -03:00
ttusb-dec
usbvision [media] usbvision: Replace memcpy with struct assignment 2012-12-27 18:44:30 -02:00
uvc [media] uvcvideo: Fix control value clamping for unsigned integer controls 2012-11-28 10:31:14 -02:00
zr364xx [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
Kconfig [media] au0828: remove forced dependency of VIDEO_AU0828 on VIDEO_V4L2 2012-12-17 14:31:26 -02:00
Makefile [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00