linux-sg2042/sound/usb/usx2y
Julia Lawall f4e9749f45 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>
2009-01-02 11:52:45 +01:00
..
Makefile ALSA: Add USB US122L driver 2008-08-01 13:37:12 +02:00
us122l.c ALSA: Use usb_set/get_intfdata 2009-01-02 11:52:45 +01:00
us122l.h ALSA: Add USB US122L driver 2008-08-01 13:37:12 +02:00
usX2Yhwdep.c vm audit: add VM_DONTEXPAND to mmap for drivers that need it 2008-02-04 07:55:38 -08:00
usX2Yhwdep.h [ALSA] Remove xxx_t typedefs: USB-USX2Y 2006-01-03 12:19:56 +01:00
usb_stream.c ALSA: sound: Make static 2008-12-10 07:55:59 +01:00
usb_stream.h ALSA: Add USB US122L driver 2008-08-01 13:37:12 +02:00
usbus428ctldefs.h [ALSA] Remove xxx_t typedefs: USB-USX2Y 2006-01-03 12:19:56 +01:00
usbusx2y.c ALSA: Use usb_set/get_intfdata 2009-01-02 11:52:45 +01:00
usbusx2y.h [ALSA] semaphore -> mutex (Archs, misc buses) 2006-03-22 10:25:43 +01:00
usbusx2yaudio.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
usx2y.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
usx2yhwdeppcm.c vm audit: add VM_DONTEXPAND to mmap for drivers that need it 2008-02-04 07:55:38 -08:00
usx2yhwdeppcm.h [ALSA] Remove xxx_t typedefs: USB-USX2Y 2006-01-03 12:19:56 +01:00