]> asedeno.scripts.mit.edu Git - linux.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)
commitdfb9a8857f4decbba8c2206e8877e1d741ee1b47
tree31a6bc623fa9d4f0519b2219165739f34d2e96ae
parent856a0a6e2d09d31fd8f00cc1fc6645196a509d56
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: 119a3cb6d687 ("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