WSL2-Linux-Kernel/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
..
Kconfig i2c-i801: Add support for Intel Ibex Peak 2008-10-22 20:21:29 +02:00
Makefile i2c: Renesas Highlander FPGA SMBus support 2008-10-14 17:30:03 +02:00
i2c-acorn.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
i2c-ali15x3.c i2c: Drop stray references to lm_sensors 2008-07-14 22:38:34 +02:00
i2c-ali1535.c i2c: Drop stray references to lm_sensors 2008-07-14 22:38:34 +02:00
i2c-ali1563.c i2c: Check for ACPI resource conflicts 2008-07-14 22:38:33 +02:00
i2c-amd756-s4882.c i2c: Fix oops on bus multiplexer driver loading 2008-08-10 22:56:15 +02:00
i2c-amd756.c PCI: Check dynids driver_data value for validity 2008-10-20 10:48:35 -07:00
i2c-amd8111.c i2c: Check for ACPI resource conflicts 2008-07-14 22:38:33 +02:00
i2c-at91.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
i2c-au1550.c i2c-au1550: Fix PM support 2008-07-14 22:38:34 +02:00
i2c-bfin-twi.c i2c: Blackfin I2C Driver: Functional power management support 2008-07-28 12:41:03 +01:00
i2c-cpm.c i2c-cpm: Suppress autoprobing for devices 2008-10-20 23:31:24 -05:00
i2c-davinci.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
i2c-elektor.c i2c-algo-pcf: Pass adapter data into ->waitforpin() method 2008-10-22 20:21:29 +02:00
i2c-gpio.c i2c: i2c_gpio: keep probe resident for hotplugged devices. 2008-07-28 12:40:44 +01:00
i2c-highlander.c i2c: Renesas Highlander FPGA SMBus support 2008-10-14 17:30:03 +02:00
i2c-hydra.c i2c: Use pci_ioremap_bar() 2008-10-22 20:21:32 +02:00
i2c-i801.c i2c-i801: Add support for Intel Ibex Peak 2008-10-22 20:21:29 +02:00
i2c-ibm_iic.c i2c-ibm_iic: Register child nodes 2008-07-14 22:38:36 +02:00
i2c-ibm_iic.h i2c-ibm_iic: Whitespace cleanup 2008-01-27 18:14:45 +01:00
i2c-iop3xx.c i2c: Let bus drivers add SPD to their class 2008-07-14 22:38:29 +02:00
i2c-iop3xx.h [PATCH] i2c-iop3xx: Avoid addressing self 2006-07-12 15:43:06 -07:00
i2c-isch.c i2c: Check for ACPI resource conflicts 2008-07-14 22:38:33 +02:00
i2c-ixp2000.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
i2c-mpc.c i2c-mpc: suppress I2C device probing 2008-10-08 11:36:42 -06:00
i2c-mv64xxx.c i2c: Let bus drivers add SPD to their class 2008-07-14 22:38:29 +02:00
i2c-nforce2-s4985.c i2c: Fix oops on bus multiplexer driver loading 2008-08-10 22:56:15 +02:00
i2c-nforce2.c i2c: Check for ACPI resource conflicts 2008-07-14 22:38:33 +02:00
i2c-ocores.c i2c-ocores: basic PM support 2008-07-14 22:38:33 +02:00
i2c-omap.c [ARM] omap: convert OMAP drivers to use ioremap() 2008-09-05 17:02:30 +01:00
i2c-parport-light.c i2c-parport-light: Don't register a platform device resource 2008-10-14 17:30:04 +02:00
i2c-parport.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
i2c-parport.h i2c-parport: Add support for One For All remote JP1 interface 2007-02-13 22:09:02 +01:00
i2c-pasemi.c i2c: Let bus drivers add SPD to their class 2008-07-14 22:38:29 +02:00
i2c-pca-isa.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2008-10-15 08:07:35 -07:00
i2c-pca-platform.c i2c-pca-platform: Fix error code 2008-07-14 22:38:26 +02:00
i2c-piix4.c i2c: Drop stray references to lm_sensors 2008-07-14 22:38:34 +02:00
i2c-pmcmsp.c i2c: Let bus drivers add SPD to their class 2008-07-14 22:38:29 +02:00
i2c-pnx.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
i2c-powermac.c hwmon: (ams) Convert to a new-style i2c driver 2008-10-17 17:51:12 +02:00
i2c-pxa.c [ARM] pxa: move i2c register and bit definitions into i2c-pxa.c 2008-10-07 19:12:55 +01:00
i2c-s3c2410.c i2c-s3c2410: Correct use of ! and & 2008-10-30 15:55:47 +01:00
i2c-sh7760.c i2c: Renesas SH7760 I2C master driver 2008-04-22 22:16:47 +02:00
i2c-sh_mobile.c i2c: fix i2c-sh_mobile timing issues 2008-09-05 14:54:13 +09:00
i2c-sibyte.c i2c-sibyte: SWARM I2C board initialization 2008-07-14 22:38:33 +02:00
i2c-simtec.c i2c: Fix platform driver hotplug/coldplug 2008-04-22 22:16:49 +02:00
i2c-sis96x.c i2c: Drop stray references to lm_sensors 2008-07-14 22:38:34 +02:00
i2c-sis630.c i2c: Drop stray references to lm_sensors 2008-07-14 22:38:34 +02:00
i2c-sis5595.c i2c: Drop stray references to lm_sensors 2008-07-14 22:38:34 +02:00
i2c-stub.c i2c: Let bus drivers add SPD to their class 2008-07-14 22:38:29 +02:00
i2c-taos-evm.c i2c: Consistently reject unsupported transactions 2008-07-14 22:38:25 +02:00
i2c-tiny-usb.c i2c-tiny-usb: New VID/PID pair 2008-04-11 12:07:05 +02:00
i2c-versatile.c i2c: Fix platform driver hotplug/coldplug 2008-04-22 22:16:49 +02:00
i2c-via.c i2c: Drop stray references to lm_sensors 2008-07-14 22:38:34 +02:00
i2c-viapro.c PCI: Check dynids driver_data value for validity 2008-10-20 10:48:35 -07:00
i2c-voodoo3.c i2c: Drop stray references to lm_sensors 2008-07-14 22:38:34 +02:00
scx200_acb.c i2c: Let bus drivers add SPD to their class 2008-07-14 22:38:29 +02:00
scx200_i2c.c scx200_i2c: Add missing class parameter 2008-10-30 15:55:47 +01:00