]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: wilco_ec: Fix keyboard backlight probing
authorDaniel Campello <campello@chromium.org>
Tue, 7 Jan 2020 18:24:21 +0000 (11:24 -0700)
committerBenson Leung <bleung@chromium.org>
Fri, 10 Jan 2020 22:57:58 +0000 (14:57 -0800)
commitdd4ef1329d201ecdaf8f1f78082f94bd8427d7fc
tree31a6bc623fa9d4f0519b2219165739f34d2e96ae
parent51a7ecc5ca0d08c0761b05097e1166701b2505bf
platform/chrome: wilco_ec: Fix keyboard backlight probing

The EC on the Wilco platform responds with 0xFF to commands related to
the keyboard backlight on the absence of a keyboard backlight module.
This change allows the EC driver to continue loading even if the
backlight module is not present.

Fixes: d1b04bb5b7ee ("platform/chrome: wilco_ec: Add keyboard backlight LED support")
Signed-off-by: Daniel Campello <campello@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/wilco_ec/keyboard_leds.c