[PATCH] ARM: pxa: Use setup_timer

Robert Jarzmik robert.jarzmik at free.fr
Tue Jul 14 14:32:51 PDT 2015


Vaishali Thakkar <vthakkar1994 at 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 at gmail.com>
Looks good to me.
I'll queue that in pxa/for-next, thanks.

Cheers.

-- 
Robert



More information about the linux-arm-kernel mailing list