summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2022-04-07 23:06:11 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-12 19:40:10 +0000
commit36e6bbfe34443a3100e07db8479195cd9baa6d39 (patch)
tree9d738b71d07c037ab0ff2fda144f6e0756111087 /include
parentddfb436d7199bd186c2f806da5e83b1bf439672f (diff)
downloadchrome-ec-36e6bbfe34443a3100e07db8479195cd9baa6d39.tar.gz
RGBKBD: Separate init and enable
Currently, enable is included in init. This patch separates them so that an RGB unit can be enabled or disabled separately. BUG=b:228525798,b:226215987 BRANCH=None TEST=Taniks Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I6f4d3b64f35f0cd30b6b58944d377932bbf5ef2e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3582324 Reviewed-by: Parth Malkan <parthmalkan@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/ec_commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index df5fee3250..1aff487bbe 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -7094,6 +7094,8 @@ enum rgbkbd_state {
RGBKBD_STATE_RESET = 0,
/* RGB keyboard is initialized but not enabled. */
RGBKBD_STATE_INITIALIZED,
+ /* RGB keyboard is disabled. */
+ RGBKBD_STATE_DISABLED,
/* RGB keyboard is enabled and ready to receive a command. */
RGBKBD_STATE_ENABLED,