/* set operation mode; enabled: the thermal layer of the kernel takes care about the temperature and the fan. disabled: the BIOS takes control of the fan.  */
static int acerhdf_set_mode(struct thermal_zone_device *thermal, enum thermal_device_mode mode)
/* set operation mode; enabled: the thermal layer of the kernel takes care about the temperature and the fan. disabled: the BIOS takes control of the fan.  */
static int acerhdf_set_mode(struct thermal_zone_device *thermal, enum thermal_device_mode mode)
{
	if (mode == THERMAL_DEVICE_DISABLED && kernelmode)
		acerhdf_revert_to_bios_mode();
	else if (mode == THERMAL_DEVICE_ENABLED && !kernelmode)
		acerhdf_enable_kernelmode();
	return 0;
}