[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1242610696.24825.462.camel@debian>
Date: Mon, 18 May 2009 09:38:16 +0800
From: Zhu Yi <yi.zhu@...el.com>
To: Julia Lawall <julia@...u.dk>
Cc: "Chatre, Reinette" <reinette.chatre@...el.com>,
"linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>,
"ipw3945-devel@...ts.sourceforge.net"
<ipw3945-devel@...ts.sourceforge.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>
Subject: Re: [PATCH 1/3] drivers/net: use dev_get_drvdata
On Sun, 2009-05-17 at 17:28 +0800, Julia Lawall wrote:
>
> From: Julia Lawall <julia@...u.dk>
>
> Eliminate direct accesses to the driver_data field.
> cf 82ab13b26f15f49be45f15ccc96bfa0b81dfd015
>
> The semantic patch that makes this change is as follows:
> (http://www.emn.fr/x-info/coccinelle/)
>
> // <smpl>
> @@
> struct device *dev;
> expression E;
> type T;
> @@
>
> - dev->driver_data = (T)E
> + dev_set_drvdata(dev, E)
>
> @@
> struct device *dev;
> type T;
> @@
>
> - (T)dev->driver_data
> + dev_get_drvdata(dev)
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia@...u.dk>
Acked-by: Zhu Yi <yi.zhu@...el.com>
Thanks,
-yi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists