int nr = attr->index; 
static ssize_t set_fan_min(struct device *dev, const char *buf,		size_t count, int nr){	struct i2c_client *client = to_i2c_client(dev);	struct adm9240_data *data = i2c_get_clientdata(client);	unsigned long val = simple_strtoul(buf, NULL, 10);	u8 new_div;	down(&data->update_lock);	if (!val) {		data->fan_min[nr] = 255;		new_div = data->fan_div[nr];		dev_dbg(&client->dev, "fan%u low limit set disabled\n",				nr + 1);	} else if (val < 1350000 / (8 * 254)) {		new_div = 3;		data->fan_min[nr] = 254;		dev_dbg(&client->dev, "fan%u low limit set minimum %u\n",				nr + 1, FAN_FROM_REG(254, 1 << new_div));	} else {		unsigned int new_min = 1350000 / val;		new_div = 0;		while (new_min > 192 && new_div < 3) {			new_div++;			new_min /= 2;		}		if (!new_min) /* keep > 0 */			new_min++;		data->fan_min[nr] = new_min;		dev_dbg(&client->dev, "fan%u low limit set fan speed %u\n",				nr + 1, FAN_FROM_REG(new_min, 1 << new_div));	}	if (new_div != data->fan_div[nr]) {		data->fan_div[nr] = new_div;		adm9240_write_fan_div(client, nr, new_div);	}	i2c_smbus_write_byte_data(client, ADM9240_REG_FAN_MIN(nr),			data->fan_min[nr]);	up(&data->update_lock);	return count;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/c7461a6652f40ce4f8e19d7368c7a807a618fb68/adm9240.c/clean/drivers/hwmon/adm9240.c