]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ALSA: Use usb_set/get_intfdata
authorJulia Lawall <julia@diku.dk>
Thu, 1 Jan 2009 17:14:35 +0000 (18:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 Jan 2009 10:52:45 +0000 (11:52 +0100)
commitf4e9749f451747f7cdd334eae951357f839c57f2
tree8aa29510c2de7a5326cf1c21d8e1588598b024cc
parent42a6e66f1e40a930d093c33ba0bb9d8d8e4555ed
ALSA: Use usb_set/get_intfdata

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@diku.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/caiaq-device.c
sound/usb/usbaudio.c
sound/usb/usx2y/us122l.c
sound/usb/usx2y/usbusx2y.c