git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
163cff3
)
drivers/net: Use setup_timer and mod_timer
author
Vaishali Thakkar
<vthakkar1994@gmail.com>
Wed, 11 Feb 2015 10:29:50 +0000
(15:59 +0530)
committer
David S. Miller
<davem@davemloft.net>
Thu, 12 Feb 2015 03:40:12 +0000
(19:40 -0800)
This patch introduces the use of functions setup_timer
and mod_timer.
This is done using Coccinelle and semantic patch used
for this as follows:
// <smpl>
@@
expression x,y,z,a,b;
@@
-init_timer (&x);
+setup_timer (&x, y, z);
+mod_timer (&a, b);
-x.function = y;
-x.data = z;
-x.expires = b;
-add_timer(&a);
// </smpl>
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c589_cs.c
patch
|
blob
|
history
diff --cc
drivers/net/ethernet/3com/3c589_cs.c
Simple merge