/* Get/Set controller mode: Possible values: 0 = Fan always on 1 = Open loop, Voltage is set according to speed, not regulated. 2 = Closed loop, RPM for all fans regulated by fan1 tachometer  */
static ssize_t get_enable(struct device *dev, struct device_attribute *devattr, char *buf)
/* Get/Set controller mode: Possible values: 0 = Fan always on 1 = Open loop, Voltage is set according to speed, not regulated. 2 = Closed loop, RPM for all fans regulated by fan1 tachometer  */
static ssize_t get_enable(struct device *dev, struct device_attribute *devattr, char *buf)
{
	struct max6650_data *data = max6650_update_device(dev);
	int mode = (data->config & MAX6650_CFG_MODE_MASK) >> 4;
	int sysfs_modes[4] = {0, 1, 2, 1};
	return sprintf(buf, "%d\n", sysfs_modes[mode]);
}