Re: [PATCH] greybus: timesync: replace init_timer with setup_timer

2017-01-02 Thread Johan Hovold
On Tue, Dec 13, 2016 at 10:39:57PM +0800, Xie Qirong wrote: > The combination of init_timer and setting up the data and function field > manually is equivalent to calling setup_timer(). This is an api > consolidation only and improves readability. > > Signed-off-by: Xie Qirong > --- > > setup_

[PATCH] greybus: timesync: replace init_timer with setup_timer

2016-12-13 Thread Xie Qirong
The combination of init_timer and setting up the data and function field manually is equivalent to calling setup_timer(). This is an api consolidation only and improves readability. Signed-off-by: Xie Qirong --- setup_timer.cocci suggested the following improvement: drivers/staging/greybus/ti