[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160225.165223.1699552403031314424.davem@davemloft.net>
Date: Thu, 25 Feb 2016 16:52:23 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: amitoj1606@...il.com
Cc: manish.chopra@...gic.com, sony.chacko@...gic.com,
rajesh.borundia@...gic.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, julia.lawall@...6.fr
Subject: Re: [PATCH] netxen: Use kobj_to_dev()
From: Amitoj Kaur Chawla <amitoj1606@...il.com>
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 <amitoj1606@...il.com>
Applied.
Powered by blists - more mailing lists