]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: asus-wmi: Fix keyboard brightness cannot be set to 0
authorJian-Hong Pan <jian-hong@endlessm.com>
Mon, 30 Dec 2019 08:30:45 +0000 (16:30 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 13 Jan 2020 09:50:59 +0000 (11:50 +0200)
commit5b7a3e2639917d0f94812f895a383dda44e1cdf3
treee856a0f4043221d44cce2fabeb084be545dc24b4
parent48654734db35f1fa07e86496d0f96aed78f96bf7
platform/x86: asus-wmi: Fix keyboard brightness cannot be set to 0

Some of ASUS laptops like UX431FL keyboard backlight cannot be set to
brightness 0. According to ASUS' information, the brightness should be
0x80 ~ 0x83. This patch fixes it by following the logic.

Fixes: b370b3fb6fea ("asus-wmi: add keyboard backlight support")
Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
Reviewed-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-wmi.c