Messages in this thread | | | From | Robert Jarzmik <> | Subject | Re: [PATCH] ARM: pxa: Use setup_timer | Date | Tue, 14 Jul 2015 23:32:51 +0200 |
| |
Vaishali Thakkar <vthakkar1994@gmail.com> 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 <vthakkar1994@gmail.com> Looks good to me. I'll queue that in pxa/for-next, thanks.
Cheers.
-- Robert
| |