lkml.org 
[lkml]   [2004]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH] i2c driver fixes for 2.6.2-rc2
    Date
    From
    ChangeSet 1.1474.148.3, 2004/01/23 17:14:52-08:00, khali@linux-fr.org

    [PATCH] I2C: Fix bus reset in i2c-philips-par

    This patch fixes the bus reset in i2c-philips-par when it is loaded with
    type!=0. For now, the reset is always made as is type==0. I guess that
    this driver will be abandoned in a while, but it probably doesn't hurt
    to fix that.


    drivers/i2c/busses/i2c-philips-par.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)


    diff -Nru a/drivers/i2c/busses/i2c-philips-par.c b/drivers/i2c/busses/i2c-philips-par.c
    --- a/drivers/i2c/busses/i2c-philips-par.c Tue Jan 27 15:27:08 2004
    +++ b/drivers/i2c/busses/i2c-philips-par.c Tue Jan 27 15:27:08 2004
    @@ -184,8 +184,8 @@
    return;
    }
    /* reset hardware to sane state */
    - bit_lp_setsda(port, 1);
    - bit_lp_setscl(port, 1);
    + adapter->bit_lp_data.setsda(port, 1);
    + adapter->bit_lp_data.setscl(port, 1);
    parport_release(adapter->pdev);

    if (i2c_bit_add_bus(&adapter->adapter) < 0) {
    -
    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 14:00    [W:0.020 / U:2.180 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site