summary refs log tree commit diff
path: root/arch/s390
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2017-07-20 10:22:47 +0800
committerZhang Rui <rui.zhang@intel.com>2017-09-01 09:03:29 +0800
commit9ef08d7a4438bb85856ee158f2b5e3e02c479279 (patch)
treefbe3c2e439b8b786ae6a8757be46692aaa57fd62 /arch/s390
parent595536e0b2475a9eac23709cd461143178c12e0e (diff)
downloadlinux-9ef08d7a4438bb85856ee158f2b5e3e02c479279.tar.gz
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>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions