platform/chrome: wilco_ec: Add keyboard backlight LED support
authorDaniel Campello <campello@chromium.org>
Wed, 6 Nov 2019 16:33:19 +0000 (09:33 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 19 Nov 2019 17:12:19 +0000 (18:12 +0100)
commit119a3cb6d687259f2be333351c1c5d634204e68b
tree89b13f1f278e731f16dd953e406ce0796aa00fe2
parent3c4d77b68928df6c2bf07f4c3ba8e5d5e490bf4e
platform/chrome: wilco_ec: Add keyboard backlight LED support

The EC is in charge of controlling the keyboard backlight on
the Wilco platform. We expose a standard LED class device
named platform::kbd_backlight.

Since the EC will never change the backlight level of its own accord,
we don't need to implement a brightness_get() method.

Signed-off-by: Nick Crews <ncrews@chromium.org>
Signed-off-by: Daniel Campello <campello@chromium.org>
Reviewed-by: Daniel Campello <campello@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/wilco_ec/Kconfig
drivers/platform/chrome/wilco_ec/Makefile
drivers/platform/chrome/wilco_ec/core.c
drivers/platform/chrome/wilco_ec/keyboard_leds.c [new file with mode: 0644]
include/linux/platform_data/wilco-ec.h