]> 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)
commitc61a893210e0020a7867ef04d70045c9239686ee
tree31a6bc623fa9d4f0519b2219165739f34d2e96ae
parent5bf1d68b1fd2926a0b1f1ae6265b4a20f935c3e4
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: 784b89d27bf4 ("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