adm1021 i2c driver bug fix
PATCH 1/1 adm1021 i2c driver bug fix
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 patch was made against the 2.6.0-test2 tree, and just removes the conversion.
--rustyl
i2c/chips/adm1021.c renamed from i2c/chips/adm1021.c.orig +4 -4
@@ -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) */