X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fi2c%2Fchips%2Fmax1619.c;h=bc7e22f0ccd52d7ccb4bf221edc0d8aa00fe6b85;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=0f8a5ac5c4d1648c78565dd8631cd7b2ead93761;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/i2c/chips/max1619.c b/drivers/i2c/chips/max1619.c index 0f8a5ac5c..bc7e22f0c 100644 --- a/drivers/i2c/chips/max1619.c +++ b/drivers/i2c/chips/max1619.c @@ -34,11 +34,11 @@ #include -static unsigned short normal_i2c[] = { I2C_CLIENT_END }; -static unsigned short normal_i2c_range[] = { 0x18, 0x1a, 0x29, 0x2b, - 0x4c, 0x4e, I2C_CLIENT_END }; +static unsigned short normal_i2c[] = { 0x18, 0x19, 0x1a, + 0x29, 0x2a, 0x2b, + 0x4c, 0x4d, 0x4e, + I2C_CLIENT_END }; static unsigned int normal_isa[] = { I2C_CLIENT_ISA_END }; -static unsigned int normal_isa_range[] = { I2C_CLIENT_ISA_END }; /* * Insmod parameters @@ -120,7 +120,7 @@ struct max1619_data { * Internal variables */ -static int max1619_id = 0; +static int max1619_id; /* * Sysfs stuff @@ -145,7 +145,8 @@ static ssize_t set_##value(struct device *dev, const char *buf, \ { \ struct i2c_client *client = to_i2c_client(dev); \ struct max1619_data *data = i2c_get_clientdata(client); \ - data->value = TEMP_TO_REG(simple_strtol(buf, NULL, 10)); \ + long val = simple_strtol(buf, NULL, 10); \ + data->value = TEMP_TO_REG(val); \ i2c_smbus_write_byte_data(client, reg, data->value); \ return count; \ }