Messages in this thread Patch in this message | | | From | davej@redhat ... | Subject | [PATCH] logic thinko in i2c | Date | Mon, 29 Sep 2003 18:04:34 +0100 |
| |
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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |