Thread (3 messages) flat view 3 messages, 3 authors, 2016-03-07

Re: mwifiex: Use to_delayed_work()

From: Kalle Valo <hidden>
Date: 2016-03-07 12:24:06
Also in: linux-wireless, lkml

Introduce the use of to_delayed_work() helper function instead of open
coding it with container_of()

A simplified version of the Coccinelle semantic patch used to make
this change is:

//<smpl>
@@
expression a;
symbol work;
@@
- container_of(a, struct delayed_work, work)
+ to_delayed_work(a)
//</smpl>

Signed-off-by: Amitoj Kaur Chawla <redacted>
Reviewed-by: Julian Calaby <redacted>
Thanks, applied to wireless-drivers-next.git.

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