static ssize_t set_pwm_enable(struct device *dev, const char *buf, size_t count, int nr) 
static ssize_t set_pwm_enable(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) 
static ssize_t set_pwm_enable(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);	if (val == 0) {		int tmp;		/* make sure the fan is on when in on/off mode */		tmp = it87_read_value(client, IT87_REG_FAN_CTL);		it87_write_value(client, IT87_REG_FAN_CTL, tmp | (1 << nr));		/* set on/off mode */		data->fan_main_ctrl &= ~(1 << nr);		it87_write_value(client, IT87_REG_FAN_MAIN_CTRL, data->fan_main_ctrl);	} else if (val == 1) {		/* set SmartGuardian mode */		data->fan_main_ctrl |= (1 << nr);		it87_write_value(client, IT87_REG_FAN_MAIN_CTRL, data->fan_main_ctrl);		/* set saved pwm value, clear FAN_CTLX PWM mode bit */		it87_write_value(client, IT87_REG_PWM(nr), PWM_TO_REG(data->manual_pwm_ctl[nr]));	} else {		up(&data->update_lock);		return -EINVAL;	}	up(&data->update_lock);	return count;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/20ad93d4e5cf5f0616198b5919ee9f304119dd4b/it87.c/clean/drivers/i2c/chips/it87.c