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:
f21fb3e
)
atm: idt77105: Use setup_timer
author
Vaishali Thakkar
<vthakkar1994@gmail.com>
Wed, 10 Jun 2015 05:40:05 +0000
(11:10 +0530)
committer
David S. Miller
<davem@davemloft.net>
Thu, 11 Jun 2015 05:46:34 +0000
(22:46 -0700)
Use the timer API function setup_timer instead of structure field
assignments to initialize a timer.
A simplified version of the Coccinelle semantic patch that performs
this transformation is as follows:
@change@
expression e1, e2, a;
@@
-init_timer(&e1);
+setup_timer(&e1, a, 0UL);
... when != a = e2
-e1.function = a;
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/idt77105.c
patch
|
blob
|
history
diff --cc
drivers/atm/idt77105.c
Simple merge