linux_old1/drivers/media/usb/usbvision
Julia Lawall f57cffb934 [media] usbvision: Use setup_timer
Convert a call to init_timer and accompanying intializations of
the timer's data and function fields to a call to setup_timer.

A simplified version of the semantic match that fixes this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression t,f,d;
@@

-init_timer(&t);
+setup_timer(&t,f,d);
-t.data = d;
-t.function = f;
// </smpl>

The semantic patch also changes the cast to long to a cast to unsigned
long in the data initializer, as unsigned long is the type of the data field.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-01-27 10:08:03 -02:00
..
Kconfig [media] Kconfig: merge all customise options into just one 2012-08-21 08:05:06 -03:00
Makefile
usbvision-cards.c
usbvision-cards.h
usbvision-core.c [media] usbvision: Use setup_timer 2015-01-27 10:08:03 -02:00
usbvision-i2c.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
usbvision-video.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
usbvision.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00