linux/drivers/mtd/nand
Julia Lawall 232ed5e68a [MTD] [NAND] alauda: use USB API functions rather than constants
This set of patches introduces calls to the following set of functions:

usb_endpoint_dir_in(epd)
usb_endpoint_dir_out(epd)
usb_endpoint_is_bulk_in(epd)
usb_endpoint_is_bulk_out(epd)
usb_endpoint_is_int_in(epd)
usb_endpoint_is_int_out(epd)
usb_endpoint_num(epd)
usb_endpoint_type(epd)
usb_endpoint_xfer_bulk(epd)
usb_endpoint_xfer_control(epd)
usb_endpoint_xfer_int(epd)
usb_endpoint_xfer_isoc(epd)

In some cases, introducing one of these functions is not possible, and it
just replaces an explicit integer value by one of the following constants:

USB_ENDPOINT_XFER_BULK
USB_ENDPOINT_XFER_CONTROL
USB_ENDPOINT_XFER_INT
USB_ENDPOINT_XFER_ISOC

An extract of the semantic patch that makes these changes is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r1@ struct usb_endpoint_descriptor *epd; @@

- ((epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) ==
- \(USB_ENDPOINT_XFER_CONTROL\|0\))
+ usb_endpoint_xfer_control(epd)

@r5@ struct usb_endpoint_descriptor *epd; @@

- ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
-  \(USB_DIR_IN\|0x80\))
+ usb_endpoint_dir_in(epd)

@inc@
@@

#include <linux/usb.h>

@depends on !inc && (r1||r5)@
@@

+ #include <linux/usb.h>
  #include <linux/usb/...>
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2009-01-05 12:59:02 +01:00
..
alauda.c [MTD] [NAND] alauda: use USB API functions rather than constants 2009-01-05 12:59:02 +01:00
ams-delta.c omap drivers: switch to standard GPIO calls 2008-10-16 11:21:40 -07:00
atmel_nand.c [MTD] [NAND] Bug on atmel_nand HW ECC : OOB info not correctly written 2008-10-14 11:07:57 +01:00
atmel_nand_ecc.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
au1550nd.c [MTD] [NAND] au1550nd.c: remove unused #include <version.h> 2008-08-25 12:20:53 +01:00
autcpu12.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
bf5xx_nand.c [MTD] [NAND] Blackfin NFC Driver: Cleanup the error exit path of bf5xx_nand_probe function 2008-08-01 15:44:22 +01:00
cafe_nand.c [MTD] [NAND] Define and use PCI_DEVICE_ID_MARVELL_88ALP01_NAND for CAFÉ 2008-09-04 09:45:38 +01:00
cmx270_nand.c [ARM] 5282/1: pxa: add CM-X255 support 2008-10-07 12:05:07 +01:00
cs553x_nand.c [MTD] [NAND] Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c 2008-10-18 12:39:17 +01:00
diskonchip.c [MTD] [NAND] diskonchip.c fix sparse endian warnings 2008-08-01 15:34:16 +01:00
edb7312.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
excite_nandflash.c [MTD] [NAND] excite_nandflash: simplify code using ARRAY_SIZE() macro. 2008-06-04 17:28:03 +01:00
fsl_elbc_nand.c [MTD] [NAND] Set the fsl elbc ECCM according the settings in bootloader. 2008-12-10 16:44:28 +00:00
fsl_upm.c [MTD] struct device - replace bus_id with dev_name(), dev_set_name() 2008-12-23 10:00:14 +00:00
gpio.c [MTD] [NAND] GPIO NAND flash driver 2008-10-18 12:48:42 +01:00
h1910.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
Kconfig [ARM] MX3: add NAND support 2008-12-16 14:58:02 +01:00
Makefile [MTD] [NAND] GPIO NAND flash driver 2008-10-18 12:48:42 +01:00
mxc_nand.c [MTD] [NAND] Freescale i.MX2 NAND driver 2008-09-02 22:35:36 +01:00
nand_base.c [MTD] [NAND] remove excess kernel-doc notation 2008-12-10 16:10:40 +00:00
nand_bbt.c [MTD] update internal API to support 64-bit device size 2008-12-10 13:37:21 +00:00
nand_ecc.c [MTD] [NAND] nand_ecc.c: adding support for 512 byte ecc 2008-08-25 12:23:36 +01:00
nand_ids.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
nandsim.c [MTD] [NAND] Remove strange u_int64_t types from nandsim 2008-12-10 14:01:46 +00:00
ndfc.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
orion_nand.c [ARM] Move include/asm-arm/plat-orion to arch/arm/plat-orion/include/plat 2008-08-09 13:44:58 +02:00
pasemi_nand.c [MTD] [NAND] drivers/mtd/nand/pasemi_nand.c: Add missing pci_dev_put 2008-12-02 10:45:19 +00:00
plat_nand.c [MTD] struct device - replace bus_id with dev_name(), dev_set_name() 2008-12-23 10:00:14 +00:00
ppchameleonevb.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
pxa3xx_nand.c Merge branch 'omap3-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel 2008-12-15 22:13:26 +00:00
rtc_from4.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
s3c2410.c Merge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel 2008-11-29 19:35:07 +00:00
sh_flctl.c [MTD] [NAND] sh_flctl: fix compile error 2008-10-20 09:23:19 +01:00
sharpsl.c [MTD] sharpsl-nand: move registration to board code 2008-10-29 21:08:37 +03:00
spia.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
tmio_nand.c [MTD] struct device - replace bus_id with dev_name(), dev_set_name() 2008-12-23 10:00:14 +00:00
ts7250.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00