linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] logic thinko in i2c
@ 2003-09-29 17:04 davej
  0 siblings, 0 replies; only message in thread
From: davej @ 2003-09-29 17:04 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/i2c/i2c-sensor.c linux-2.5/drivers/i2c/i2c-sensor.c
--- bk-linus/drivers/i2c/i2c-sensor.c	2003-09-27 16:42:51.000000000 +0100
+++ linux-2.5/drivers/i2c/i2c-sensor.c	2003-09-28 13:18:20.000000000 +0100
@@ -133,7 +133,7 @@ int i2c_detect(struct i2c_adapter *adapt
 		     i += 2) {
 			if (((adapter_id == address_data->probe[i]) ||
 			     ((address_data->
-			       probe[i] == ANY_I2C_BUS) & !is_isa))
+			       probe[i] == ANY_I2C_BUS) && !is_isa))
 			    && (addr == address_data->probe[i + 1])) {
 				dev_dbg(&adapter->dev, "found probe parameter for adapter %d, addr %04x\n", adapter_id, addr);
 				found = 1;
@@ -141,7 +141,7 @@ int i2c_detect(struct i2c_adapter *adapt
 		}
 		for (i = 0; !found && (address_data->probe_range[i] != I2C_CLIENT_END); i += 3) {
 			if ( ((adapter_id == address_data->probe_range[i]) ||
-			      ((address_data->probe_range[i] == ANY_I2C_BUS) & !is_isa)) &&
+			      ((address_data->probe_range[i] == ANY_I2C_BUS) && !is_isa)) &&
 			     (addr >= address_data->probe_range[i + 1]) &&
 			     (addr <= address_data->probe_range[i + 2])) {
 				found = 1;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-29 17:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29 17:04 [PATCH] logic thinko in i2c davej

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).