linux/drivers/media/radio
Ezequiel Garcia 2b9b325d73 [media] radio-wl1273: 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 19:03:31 -02:00
..
si470x [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
wl128x [media] fmdrv: Don't check if unsigned are below zero 2012-10-28 07:39:04 -02:00
dsbr100.c [media] dsbr100: clean up and update to the latest v4l2 framework 2012-05-04 15:01:14 -03:00
Kconfig [media] shark2: New driver for the Griffin radioSHARK v2 USB radio receiver 2012-07-30 18:46:17 -03:00
lm7000.h [media] radio: Add Sanyo LM7000 tuner driver 2012-06-25 11:07:27 -03:00
Makefile [media] shark2: New driver for the Griffin radioSHARK v2 USB radio receiver 2012-07-30 18:46:17 -03:00
radio-aimslab.c [media] radio-aimslab.c: get rid of warning: no previous prototype 2012-10-27 18:07:44 -02:00
radio-aztech.c [media] Add missing slab.h to fix linux-next compile errors 2012-03-19 11:25:12 -03:00
radio-cadet.c [media] drivers/media/radio/radio-cadet.c: fix error return code 2012-11-22 14:20:34 -02:00
radio-gemtek.c [media] radio-gemtek: add PnP support for AOpen FX-3D/Pro Radio 2012-04-10 19:53:19 -03:00
radio-isa.c [media] radio-isa: get rid of warning: no previous prototype 2012-10-27 18:08:02 -02:00
radio-isa.h [media] radio-isa: PnP support for the new ISA radio framework 2012-04-10 19:52:16 -03:00
radio-keene.c [media] v4l2: make vidioc_s_modulator const 2012-09-26 10:58:02 -03:00
radio-maxiradio.c [media] snd_tea575x: Make the module using snd_tea575x the fops owner 2012-06-11 16:02:54 -03:00
radio-miropcm20.c [media] v4l2: make vidioc_s_audio const 2012-09-26 10:50:12 -03:00
radio-mr800.c [media] radio drivers: in non-blocking mode return EAGAIN in hwseek 2012-09-26 17:51:41 -03:00
radio-rtrack2.c [media] radio-rtrack2: add missing slab.h 2012-03-30 16:41:29 -03:00
radio-sf16fmi.c [media] radio-sf16fmi: get rid of warning: no previous prototype 2012-10-27 18:08:13 -02:00
radio-sf16fmr2.c [media] snd_tea575x: Make the module using snd_tea575x the fops owner 2012-06-11 16:02:54 -03:00
radio-shark2.c [media] shark,shark2: declare resume/suspend functions as static 2012-09-13 17:42:13 -03:00
radio-shark.c [media] shark,shark2: declare resume/suspend functions as static 2012-09-13 17:42:13 -03:00
radio-si4713.c [media] v4l2: make vidioc_s_modulator const 2012-09-26 10:58:02 -03:00
radio-tea5764.c radio tea5764, si4713: get rid of warning: no previous prototype 2012-10-28 07:39:06 -02:00
radio-tea5777.c [media] radio drivers: in non-blocking mode return EAGAIN in hwseek 2012-09-26 17:51:41 -03:00
radio-tea5777.h [media] radio-shark2: Add support for suspend & resume 2012-09-13 17:42:11 -03:00
radio-terratec.c [media] Add missing slab.h to fix linux-next compile errors 2012-03-19 11:25:12 -03:00
radio-timb.c [media] v4l2: make vidioc_s_audio const 2012-09-26 10:50:12 -03:00
radio-trust.c [media] Add missing slab.h to fix linux-next compile errors 2012-03-19 11:25:12 -03:00
radio-typhoon.c [media] Add missing slab.h to fix linux-next compile errors 2012-03-19 11:25:12 -03:00
radio-wl1273.c [media] radio-wl1273: Replace memcpy with struct assignment 2012-12-27 19:03:31 -02:00
radio-zoltrix.c [media] Add missing slab.h to fix linux-next compile errors 2012-03-19 11:25:12 -03:00
saa7706h.c [media] saa7706h: convert struct i2c_msg initialization to C99 format 2012-09-27 07:40:10 -03:00
si4713-i2c.c radio tea5764, si4713: get rid of warning: no previous prototype 2012-10-28 07:39:06 -02:00
si4713-i2c.h
tef6862.c [media] drivers/media: add missing __devexit_p() annotations 2012-05-15 07:53:51 -03:00