lkml.org 
[lkml]   [2003]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] logic thinko in i2c
    Date
    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/
    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:0.019 / U:30.892 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site