]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mwifiex: Use to_delayed_work()
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 17 Feb 2016 12:33:37 +0000 (18:03 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 7 Mar 2016 12:20:30 +0000 (14:20 +0200)
commit8dd37c7cd442411f52b90e8b556d38324450de46
tree0e1e43f97eaba1b5aaab896f8903847dfdeb9708
parent240d61a9ddeb8a77f11369f67f6ef060354b909d
mwifiex: Use to_delayed_work()

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@gmail.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/11h.c