lkml.org 
[lkml]   [2003]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH] i2c driver changes 2.6.0-test3
    From
    Date
    ChangeSet 1.1123.18.6, 2003/08/14 14:31:21-07:00, rusty@linux.co.intel.com

    [PATCH] I2C: bugfix for initialization bug in adm1021 driver

    While initializing the adm1021 device, the driver is performing a conversion
    from fixed point to Celcius on values that were declaired as Celcius. On
    my Dell Precision 220 this results in a shutdown after a couple of minutes
    running.

    This is a very simple patch against the 2.6.0-test3 tree that just removes the
    conversion.


    drivers/i2c/chips/adm1021.c | 8 ++++----
    1 files changed, 4 insertions(+), 4 deletions(-)


    diff -Nru a/drivers/i2c/chips/adm1021.c b/drivers/i2c/chips/adm1021.c
    --- a/drivers/i2c/chips/adm1021.c Fri Aug 15 11:26:53 2003
    +++ b/drivers/i2c/chips/adm1021.c Fri Aug 15 11:26:53 2003
    @@ -356,13 +356,13 @@
    {
    /* Initialize the adm1021 chip */
    adm1021_write_value(client, ADM1021_REG_TOS_W,
    - TEMP_TO_REG(adm1021_INIT_TOS));
    + adm1021_INIT_TOS);
    adm1021_write_value(client, ADM1021_REG_THYST_W,
    - TEMP_TO_REG(adm1021_INIT_THYST));
    + adm1021_INIT_THYST);
    adm1021_write_value(client, ADM1021_REG_REMOTE_TOS_W,
    - TEMP_TO_REG(adm1021_INIT_REMOTE_TOS));
    + adm1021_INIT_REMOTE_TOS);
    adm1021_write_value(client, ADM1021_REG_REMOTE_THYST_W,
    - TEMP_TO_REG(adm1021_INIT_REMOTE_THYST));
    + adm1021_INIT_REMOTE_THYST);
    /* Enable ADC and disable suspend mode */
    adm1021_write_value(client, ADM1021_REG_CONFIG_W, 0);
    /* Set Conversion rate to 1/sec (this can be tinkered with) */
    -
    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:47    [W:0.020 / U:33.508 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site