linux-sg2042/drivers/staging/dgap
Somya Anand 2049f1ea88 Staging: dgap: Use setup_timer to combine initialization
The function setup_timer combines the initialization of a timer with the
initialization of the timer's function and data fields.

So, this patch combines the multiline code for timer initialization using the function
setup_timer. This issue is identified via coccinelle script.

@@
expression E1, E2, E3;
type T;
@@
- init_timer(&E1);
...
(
- E1.function = E2;
...
- E1.data = (T)E3;
+ setup_timer(&E1, E2, (T)E3);
|
- E1.data = (T)E3;
...
- E1.function = E2;
+ setup_timer(&E1, E2, (T)E3);
|
- E1.function = E2;
+ setup_timer(&E1, E2, 0);
)

Signed-off-by: Somya Anand <somyaanand214@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-16 16:17:31 +01:00
..
Kconfig staging,dgap: Add dependency on HAS_IOMEM 2014-01-15 14:51:22 -08:00
Makefile staging: dgap: Rename driver 2014-02-24 16:48:44 -08:00
dgap.c Staging: dgap: Use setup_timer to combine initialization 2015-03-16 16:17:31 +01:00
dgap.h staging: dgap: Avoid name collision 2015-03-06 17:06:30 -08:00