/* pwm_auto_point_temp mapping table: Note that there is only a single set of temp auto points that controls both PWM controllers. We still create 2 sets of sysfs files to make it look more consistent even though they map to the same registers. */
static ssize_t show_pwm_auto_point_temp(struct device *dev, struct device_attribute *attr, char *buf)
/* pwm_auto_point_temp mapping table: Note that there is only a single set of temp auto points that controls both PWM controllers. We still create 2 sets of sysfs files to make it look more consistent even though they map to the same registers. */
static ssize_t show_pwm_auto_point_temp(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct vt1211_data *data = vt1211_update_device(dev);
	struct sensor_device_attribute_2 *sensor_attr_2 =
						to_sensor_dev_attr_2(attr);
	int ix = sensor_attr_2->index;
	int ap = sensor_attr_2->nr;
	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->pwm_ctl[ix] & 7,
		       data->pwm_auto_temp[ap]));
}