Re: mwifiex: Use to_delayed_work()

From: Kalle Valo
Date: Mon Mar 07 2016 - 07:24:08 EST



> 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 <amitoj1606@xxxxxxxxx>
> Reviewed-by: Julian Calaby <julian.calaby@xxxxxxxxx>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo