2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

turn on continuous conversion as suggested in ticket 932

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1494 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker
2002-08-15 03:21:17 +00:00
parent 657a9c7e03
commit f2f711d46a
2 changed files with 7 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ ask CVS about it:
2.6.5 (2002????) 2.6.5 (2002????)
Library: Fix fan3_div writes for w8378* and it87 Library: Fix fan3_div writes for w8378* and it87
Module dmi_scan: new Module dmi_scan: new
Module ds1621: Fix enable/disable
Module i2c-i801: Check for uninitialized base address; Module i2c-i801: Check for uninitialized base address;
enable if not enabled enable if not enabled
Module i2c-piix4: Refuse to load on IBM systems Module i2c-piix4: Refuse to load on IBM systems

View File

@@ -369,15 +369,17 @@ int ds1621_write_value(struct i2c_client *client, u8 reg, u16 value)
void ds1621_init_client(struct i2c_client *client) void ds1621_init_client(struct i2c_client *client)
{ {
int reg;
/* Initialize the DS1621 chip */ /* Initialize the DS1621 chip */
ds1621_write_value(client, DS1621_REG_TEMP_OVER, ds1621_write_value(client, DS1621_REG_TEMP_OVER,
TEMP_TO_REG(DS1621_INIT_TEMP_OVER)); TEMP_TO_REG(DS1621_INIT_TEMP_OVER));
ds1621_write_value(client, DS1621_REG_TEMP_HYST, ds1621_write_value(client, DS1621_REG_TEMP_HYST,
TEMP_TO_REG(DS1621_INIT_TEMP_HYST)); TEMP_TO_REG(DS1621_INIT_TEMP_HYST));
ds1621_write_value(client, DS1621_REG_CONF, 0); reg = ds1621_read_value(client, DS1621_REG_CONF);
/* start the continous conversion */
/* perhaps we should start the continous conversion? For now */ if(reg & 0x01)
/* you got to do that yourself using the "enable" in proc */ ds1621_write_value(client, DS1621_REG_CONF, reg & 0xfe);
} }
void ds1621_update_client(struct i2c_client *client) void ds1621_update_client(struct i2c_client *client)