linux-stable/drivers/thermal/int340x_thermal
Zhang Rui 9ef08d7a44 Thermal: int3406_thermal: fix thermal sysfs I/F
there are three concepts represent backlight in int3406_thermal driver.
1. the raw brightness value from native graphics driver.
2. the percentage numbers from ACPI _BCL control method.
3. the consecutive numbers represent cooling states.

int3406_thermal driver
1. uses value from DDDL/DDPC as the lower/upper limit, which is consistent
   with ACPI _BCL control methods.
2. reads current and maximum brightness from the native graphics driver.
3. expose them to thermal sysfs I/F

This patch fixes the code that switches between the raw brightness value
and the cooling state, which results in bogus value in thermal sysfs I/F.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2017-09-01 09:03:29 +08:00
..
Kconfig Thermal / ACPI / video: add INT3406 thermal driver 2016-05-11 02:15:31 +02:00
Makefile Thermal / ACPI / video: add INT3406 thermal driver 2016-05-11 02:15:31 +02:00
acpi_thermal_rel.c Thermal/int340x: Fix few typos and kernel warn message 2017-08-08 21:36:34 +08:00
acpi_thermal_rel.h Thermal/int340x: Fix few typos and kernel warn message 2017-08-08 21:36:34 +08:00
int340x_thermal_zone.c thermal: int340x: New Interface to read trip and notify 2016-09-27 14:37:14 +08:00
int340x_thermal_zone.h thermal: int340x: New Interface to read trip and notify 2016-09-27 14:37:14 +08:00
int3400_thermal.c thermal: int3400_thermal: process "thermal table changed" event 2017-08-11 10:51:22 +08:00
int3402_thermal.c thermal: int340x: New Interface to read trip and notify 2016-09-27 14:37:14 +08:00
int3403_thermal.c thermal: int340x: check for sensor when PTYP is missing 2017-06-29 10:53:38 +08:00
int3406_thermal.c Thermal: int3406_thermal: fix thermal sysfs I/F 2017-09-01 09:03:29 +08:00
processor_thermal_device.c thermal: int340x_thermal: Constify attribute_group structures. 2017-08-08 16:54:08 +08:00