static ssize_t set_sensor(struct device *dev, const char *buf, size_t count, int nr) 
static ssize_t set_sensor(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) 
static ssize_t set_sensor(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);	down(&data->update_lock);	data->sensor &= ~(1 << nr);	data->sensor &= ~(8 << nr);	/* 3 = thermal diode; 2 = thermistor; 0 = disabled */	if (val == 3)	    data->sensor |= 1 << nr;	else if (val == 2)	    data->sensor |= 8 << nr;	else if (val != 0) {		up(&data->update_lock);		return -EINVAL;	}	it87_write_value(client, IT87_REG_TEMP_ENABLE, data->sensor);	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