Thread (2 messages) flat view 2 messages, 2 authors, 2016-02-25

Re: [PATCH] netxen: Use kobj_to_dev()

From: David Miller <davem@davemloft.net>
Date: 2016-02-25 21:52:27
Also in: lkml

From: Amitoj Kaur Chawla <redacted>
Date: Wed, 24 Feb 2016 20:09:38 +0530
Introduce the use of kobj_to_dev() helper function instead of open
coding it with container_of()

The Coccinelle semantic patch used to make this change is as follows:

//<smpl>
@@
expression a;
symbol kobj;
@@
- container_of(a, struct device, kobj)
+ kobj_to_dev(a)
//</smpl>

Signed-off-by: Amitoj Kaur Chawla <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help