Re: [PATCH] netxen: Use kobj_to_dev()

2016-02-25 Thread David Miller
From: Amitoj Kaur Chawla 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: > > // > @@ > expression a; > symbol kobj; > @@ > - conta

[PATCH] netxen: Use kobj_to_dev()

2016-02-24 Thread Amitoj Kaur Chawla
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: // @@ expression a; symbol kobj; @@ - container_of(a, struct device, kobj) + kobj_to_dev(a) // Signed-off-by: Amitoj Kaur Chawla