android_kernel_motorola_sm6225/drivers/i2c/busses
Julia Lawall da6801e38b i2c-s3c2410: Correct use of ! and &
In commit e6bafba5b4, a bug was fixed that
involved converting !x & y to !(x & y).  The code below shows the same
pattern, and thus should perhaps be fixed in the same way.  In particular,
the result of !readl(i2c->regs + S3C2410_IICCON) & S3C2410_IICCON_IRQEN is
always 0.

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

// <smpl>
@@ expression E; constant C; @@
(
  !E & !C
|
- !E & C
+ !(E & C)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2008-10-30 15:55:47 +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-au1550.c
i2c-bfin-twi.c
i2c-cpm.c
i2c-davinci.c
i2c-elektor.c
i2c-gpio.c
i2c-highlander.c
i2c-hydra.c i2c: Use pci_ioremap_bar() 2008-10-22 20:21:32 +02:00
i2c-i801.c
i2c-ibm_iic.c
i2c-ibm_iic.h
i2c-iop3xx.c
i2c-iop3xx.h
i2c-isch.c
i2c-ixp2000.c
i2c-mpc.c
i2c-mv64xxx.c
i2c-nforce2-s4985.c
i2c-nforce2.c
i2c-ocores.c
i2c-omap.c
i2c-parport-light.c
i2c-parport.c
i2c-parport.h
i2c-pasemi.c
i2c-pca-isa.c
i2c-pca-platform.c
i2c-piix4.c
i2c-pmcmsp.c
i2c-pnx.c
i2c-powermac.c
i2c-pxa.c
i2c-s3c2410.c i2c-s3c2410: Correct use of ! and & 2008-10-30 15:55:47 +01:00
i2c-sh7760.c
i2c-sh_mobile.c
i2c-sibyte.c
i2c-simtec.c
i2c-sis96x.c
i2c-sis630.c
i2c-sis5595.c
i2c-stub.c
i2c-taos-evm.c
i2c-tiny-usb.c
i2c-versatile.c
i2c-via.c
i2c-viapro.c
i2c-voodoo3.c
Kconfig
Makefile
scx200_acb.c
scx200_i2c.c scx200_i2c: Add missing class parameter 2008-10-30 15:55:47 +01:00