Init cleanups (unused vars and functions, and more).

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2123 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2003-11-30 11:27:42 +00:00
1 parent e5483ca3b6
commit c1e28f8896
4 files changed
+14 -41

No files matched your search

+4 -10
View File
@@ -373,22 +373,16 @@ static int adm1025_detach_client(struct i2c_client *client)
}
/* Called when we have found a new ADM1025. It should set limits, etc. */
/* Called when we have found a new ADM1025. */
static void adm1025_init_client(struct i2c_client *client)
{
struct adm1025_data *data = client->data;
u8 reg, nr;
u8 reg;
data->vrm = DEFAULT_VRM;
/* Restore power-up default values (configuration and status
registers). This makes some other initializations
unnecessary. Set the chip in standby mode until the
limits are properly set. Note that we take great care not to
change the bits 1-6 of the configuration register, since
they hold data we want to preserve. */
reg = i2c_smbus_read_byte_data(client, ADM1025_REG_CONFIG);
/* Restore configuration and start monitoring */
/* Start monitoring */
reg = i2c_smbus_read_byte_data(client, ADM1025_REG_CONFIG);
i2c_smbus_write_byte_data(client, ADM1025_REG_CONFIG, (reg|0x01)&0x7F);
}