linux/drivers/i2c/busses
Julia Lawall 593308259b i2c: Use resource_size
Use the function resource_size, which reduces the chance of introducing
off-by-one errors in calculating the resource size.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
struct resource *res;
@@

- (res->end - res->start) + 1
+ resource_size(res)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2009-07-15 00:03:56 +01:00
..
i2c-acorn.c
i2c-ali15x3.c
i2c-ali1535.c
i2c-ali1563.c
i2c-amd756-s4882.c
i2c-amd756.c
i2c-amd8111.c
i2c-at91.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-au1550.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-bfin-twi.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-cpm.c i2c: Fix stuck transaction on cpm-i2c driver 2009-06-22 01:43:32 +01:00
i2c-davinci.c i2c: Use resource_size 2009-07-15 00:03:56 +01:00
i2c-designware.c i2c: driver for the Synopsys DesignWare I2C controller 2009-06-24 00:18:56 +01:00
i2c-elektor.c
i2c-gpio.c
i2c-highlander.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-hydra.c
i2c-i801.c
i2c-ibm_iic.c Remove multiple KERN_ prefixes from printk formats 2009-07-08 10:30:03 -07:00
i2c-ibm_iic.h
i2c-imx.c
i2c-iop3xx.c
i2c-iop3xx.h
i2c-isch.c
i2c-ixp2000.c
i2c-mpc.c powerpc/5xxx: Add common mpc5xxx_get_bus_frequency() function 2009-06-17 00:30:22 -06:00
i2c-mv64xxx.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-nforce2-s4985.c
i2c-nforce2.c
i2c-ocores.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-omap.c i2c: Use resource_size 2009-07-15 00:03:56 +01:00
i2c-parport-light.c
i2c-parport.c
i2c-parport.h
i2c-pasemi.c
i2c-pca-isa.c
i2c-pca-platform.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-piix4.c
i2c-pmcmsp.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-pnx.c
i2c-powermac.c
i2c-pxa.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-s3c2410.c i2c-s3c2410: use resource_size() 2009-06-16 22:42:16 +01:00
i2c-s6000.c
i2c-s6000.h
i2c-sh7760.c
i2c-sh_mobile.c i2c: Use resource_size 2009-07-15 00:03:56 +01:00
i2c-sibyte.c
i2c-simtec.c i2c: Use resource_size 2009-07-15 00:03:56 +01:00
i2c-sis96x.c
i2c-sis630.c
i2c-sis5595.c
i2c-stu300.c i2c: ST DDC I2C U300 bus driver v3 2009-06-16 22:42:16 +01:00
i2c-stub.c
i2c-taos-evm.c
i2c-tiny-usb.c
i2c-versatile.c i2c: Use resource_size macro 2009-06-16 22:42:16 +01:00
i2c-via.c
i2c-viapro.c i2c-viapro: Add new PCI device ID for VX855 2009-06-15 18:01:49 +02:00
i2c-voodoo3.c i2c: Do not probe for TV chips on Voodoo3 adapters 2009-06-15 18:01:48 +02:00
Kconfig i2c: fix build bug in i2c-designware.c 2009-06-25 11:22:12 -07:00
Makefile i2c: driver for the Synopsys DesignWare I2C controller 2009-06-24 00:18:56 +01:00
scx200_acb.c
scx200_i2c.c