Thread (1 message) 1 message, 1 author, 2015-07-14

[PATCH] ARM: pxa: Use setup_timer

From: robert.jarzmik@free.fr (Robert Jarzmik)
Date: 2015-07-14 21:35:46
Also in: lkml

Vaishali Thakkar [off-list ref] writes:
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 <redacted>
Looks good to me.
I'll queue that in pxa/for-next, thanks.

Cheers.

-- 
Robert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help