[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5hd4f6htbz.wl%tiwai@suse.de>
Date: Fri, 02 Jan 2009 11:53:52 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Julia Lawall <julia@...u.dk>
Cc: perex@...ex.cz, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 1/2] sound: Use usb_set/get_intfdata
At Thu, 1 Jan 2009 18:14:35 +0100 (CET),
Julia Lawall wrote:
>
> From: Julia Lawall <julia@...u.dk>
>
> Use the USB functions usb_get_intfdata and usb_set_intfdata instead of
> dev_get_drvdata and dev_set_drvdata, respectively.
>
> The semantic patch that makes this change for the usb_get_intfdata case is
> as follows: (http://www.emn.fr/x-info/coccinelle/)
>
> // <smpl>
> @header@
> @@
>
> #include <linux/usb.h>
>
> @same depends on header@
> position p;
> @@
>
> usb_get_intfdata@p(...) { ... }
>
> @depends on header@
> position _p!=same.p;
> identifier _f;
> struct usb_interface*intf;
> @@
>
> _f@_p(...) { <+...
> - dev_get_drvdata(&intf->dev)
> + usb_get_intfdata(intf)
> ...+> }
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia@...u.dk>
Applied now. Thanks.
Takashi
--
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