static ssize_t set_fan_div(struct device *dev, const char *buf, size_t count, int nr) 
static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) 
static ssize_t set_fan_div(struct device *dev, const char *buf, 		size_t count, int nr){	struct i2c_client *client = to_i2c_client(dev);	struct it87_data *data = i2c_get_clientdata(client);	int val = simple_strtol(buf, NULL, 10);	int i, min[3];	u8 old;	down(&data->update_lock);	old = it87_read_value(client, IT87_REG_FAN_DIV);	for (i = 0; i < 3; i++)		min[i] = FAN_FROM_REG(data->fan_min[i], DIV_FROM_REG(data->fan_div[i]));	switch (nr) {	case 0:	case 1:		data->fan_div[nr] = DIV_TO_REG(val);		break;	case 2:		if (val < 8)			data->fan_div[nr] = 1;		else			data->fan_div[nr] = 3;	}	val = old & 0x80;	val |= (data->fan_div[0] & 0x07);	val |= (data->fan_div[1] & 0x07) << 3;	if (data->fan_div[2] == 3)		val |= 0x1 << 6;	it87_write_value(client, IT87_REG_FAN_DIV, val);	for (i = 0; i < 3; i++) {		data->fan_min[i]=FAN_TO_REG(min[i], DIV_FROM_REG(data->fan_div[i]));		it87_write_value(client, IT87_REG_FAN_MIN(i), data->fan_min[i]);	}	up(&data->update_lock);	return count;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/20ad93d4e5cf5f0616198b5919ee9f304119dd4b/it87.c/buggy/drivers/i2c/chips/it87.c