USB: rename usb_buffer_alloc() and usb_buffer_free() users
authorDaniel Mack <daniel@caiaq.de>
Mon, 12 Apr 2010 11:17:25 +0000 (13:17 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:38 +0000 (13:21 -0700)
commit997ea58eb92f9970b8af7aae48800d0ef43b9423
tree65e021973e5a48ad7290d5be1f441940566468ad
parent48679c6d772b1459a2945729e3a1256ac78fcabf
USB: rename usb_buffer_alloc() and usb_buffer_free() users

For more clearance what the functions actually do,

  usb_buffer_alloc() is renamed to usb_alloc_coherent()
  usb_buffer_free()  is renamed to usb_free_coherent()

They should only be used in code which really needs DMA coherency.

All call sites have been changed accordingly, except for staging
drivers.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Pedro Ribeiro <pedrib@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
51 files changed:
Documentation/DocBook/writing_usb_driver.tmpl
Documentation/usb/dma.txt
drivers/hid/usbhid/hid-core.c
drivers/hid/usbhid/usbkbd.c
drivers/hid/usbhid/usbmouse.c
drivers/input/joystick/xpad.c
drivers/input/misc/ati_remote.c
drivers/input/misc/ati_remote2.c
drivers/input/misc/cm109.c
drivers/input/misc/keyspan_remote.c
drivers/input/misc/powermate.c
drivers/input/misc/yealink.c
drivers/input/mouse/appletouch.c
drivers/input/mouse/bcm5974.c
drivers/input/tablet/acecad.c
drivers/input/tablet/aiptek.c
drivers/input/tablet/gtco.c
drivers/input/tablet/kbtab.c
drivers/input/tablet/wacom_sys.c
drivers/input/touchscreen/usbtouchscreen.c
drivers/media/dvb/dvb-usb/usb-urb.c
drivers/media/dvb/ttusb-dec/ttusb_dec.c
drivers/media/video/au0828/au0828-video.c
drivers/media/video/cx231xx/cx231xx-core.c
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/gspca/benq.c
drivers/media/video/gspca/gspca.c
drivers/media/video/hdpvr/hdpvr-video.c
drivers/media/video/tlg2300/pd-video.c
drivers/media/video/usbvision/usbvision-core.c
drivers/media/video/uvc/uvc_video.c
drivers/net/can/usb/ems_usb.c
drivers/net/usb/ipheth.c
drivers/net/usb/kaweth.c
drivers/net/wireless/ath/ar9170/usb.c
drivers/net/wireless/zd1211rw/zd_usb.c
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-wdm.c
drivers/usb/class/usblp.c
drivers/usb/misc/appledisplay.c
drivers/usb/misc/ftdi-elan.c
drivers/usb/misc/iowarrior.c
drivers/usb/misc/usblcd.c
drivers/usb/misc/usbtest.c
drivers/usb/storage/onetouch.c
drivers/usb/storage/usb.c
drivers/usb/usb-skeleton.c
drivers/watchdog/pcwd_usb.c
sound/usb/ua101.c
sound/usb/usbaudio.c
sound/usb/usbmidi.c