struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); int nr = sensor_attr->index; 
static ssize_t set_in_min(struct device *dev, const char *buf, 		size_t count, int nr){	struct i2c_client *client = to_i2c_client(dev);	struct adm1026_data *data = i2c_get_clientdata(client);	int val = simple_strtol(buf, NULL, 10);	down(&data->update_lock);	data->in_min[nr] = INS_TO_REG(nr, val);	adm1026_write_value(client, ADM1026_REG_IN_MIN[nr], data->in_min[nr]);	up(&data->update_lock);	return count; }
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/050480f12aeab62d39a1a07546606a47217ebefa/adm1026.c/buggy/drivers/i2c/chips/adm1026.c