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:51:27 +0000 (11:51 +0200)
commit26e66a0cf258d413bd64095b0fea6e34f9e46587
tree5ca41291ecff47ac76c86683a3ab3e84bfdfa91e
parent4eedc97300fd7d4d5694c175e71855bff9731024
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: e9809c0b9670 ("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