Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Jan Engelhardt <jengelh <at> computergmbh.de>
Subject: Re: [PATCH] dev->priv to netdev_priv(dev), drivers/net/tokenring/
Newsgroups: gmane.linux.kernel.janitors
Date: Monday 23rd July 2007 15:13:07 UTC (over 9 years ago)
On Jul 23 2007 15:18, Yoann Padioleau wrote:
>
>Here is an excerpt of the semantic patch that performs the transformation
>
>@@
>
>- (T*) dev->priv
>+ netdev_priv(dev)

Note that dev->priv is a void*, and hence does not need casting.
So dev->priv may also appear without one.

> {
> 
>-	struct xl_private *xl_priv = (struct xl_private *)dev->priv ; 
>+	struct xl_private *xl_priv = netdev_priv(dev) ; 
> 	struct xl_tx_desc *txd ; 
> 	u8 __iomem *xl_mmio = xl_priv->xl_mmio ; 
> 	int i ; 

	Jan
-- 
-
To unsubscribe from this list: send the line "unsubscribe kernel-janitors"
in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
 
CD: 59ms