staging: most: hdm-usb: Use setup_timer
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Sat, 24 Oct 2015 02:15:44 +0000 (07:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:09:03 +0000 (19:09 -0700)
commitbff1d83d78db66d3307f856344fd2202b8b77ce3
tree5c6a0380656f50ce17d5af90b9e80a2edf32be66
parentf96d48aaa915178995b4bf246793168376fd0576
staging: most: hdm-usb: Use setup_timer

Use the timer API function setup_timer instead of init_timer, removing
the structure field assignments.

<smpl>

@timer@
expression e1,e2,e3,fn_ptr;
@@
-init_timer(&e1);
+setup_timer(&e1, fn_ptr, e2);
... when != fn_ptr = e3
-e1.function = fn_ptr;
-e1.data = e2;

</smpl>

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c