OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:47:03 +0000 (19:47 +0100)
commitd847154df490d018cb850dbc17b621260b10d1e3
tree13ef5ceb81959e4c431a9cbee6cca830a95b666f
parente61a25a897db10686e2e0fc34689b2c01365e352
platform/x86: asus-wmi: Fix keyboard brightness cannot be set to 0

commit 176a7fca81c5090a7240664e3002c106d296bf31 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/asus-wmi.c