diff options
author | Anton Staaf <robotboy@chromium.org> | 2016-03-22 11:06:25 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-03-22 19:54:46 -0700 |
commit | 57244d77083849f28101cc7b509e9fc39a7930d8 (patch) | |
tree | 0e12bf73928b307011cfb4f4ca125e0cdc731abf /include/console_channel.inc | |
parent | 4826d592ce100cd7b5086c4b0949ae3034b5a394 (diff) | |
download | chrome-ec-57244d77083849f28101cc7b509e9fc39a7930d8.tar.gz |
Console: Fix channel enum values
The channel enum and string name array were out of sync (when
CONFIG_EXTENSION_COMMAND is defined). This was caused by the two lists
being specified separately. I argue that this is a good reason to merge
the lists into a separate X-Macro include file.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Change-Id: I81d143f550a0fe6ef0c64e3c8357ed18aee4bfdc
Reviewed-on: https://chromium-review.googlesource.com/334381
Commit-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/console_channel.inc')
-rw-r--r-- | include/console_channel.inc | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/include/console_channel.inc b/include/console_channel.inc new file mode 100644 index 0000000000..9f63908074 --- /dev/null +++ b/include/console_channel.inc @@ -0,0 +1,49 @@ +/* -*- mode:c -*- + * + * Copyright 2016 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +CONSOLE_CHANNEL(CC_COMMAND, "command") +CONSOLE_CHANNEL(CC_ACCEL, "accel") +#ifdef CONFIG_EXTENSION_COMMAND +CONSOLE_CHANNEL(CC_EXTENSION, "extension") +#endif +CONSOLE_CHANNEL(CC_CHARGER, "charger") +CONSOLE_CHANNEL(CC_CHIPSET, "chipset") +CONSOLE_CHANNEL(CC_CLOCK, "clock") +CONSOLE_CHANNEL(CC_DMA, "dma") +CONSOLE_CHANNEL(CC_EVENTS, "events") +CONSOLE_CHANNEL(CC_GESTURE, "gesture") +CONSOLE_CHANNEL(CC_GPIO, "gpio") +CONSOLE_CHANNEL(CC_HOSTCMD, "hostcmd") +CONSOLE_CHANNEL(CC_I2C, "i2c") +CONSOLE_CHANNEL(CC_KEYBOARD, "keyboard") +CONSOLE_CHANNEL(CC_KEYSCAN, "keyscan") +CONSOLE_CHANNEL(CC_LIDANGLE, "lidangle") +#ifdef HAS_TASK_LIGHTBAR +CONSOLE_CHANNEL(CC_LIGHTBAR, "lightbar") +#endif +CONSOLE_CHANNEL(CC_LPC, "lpc") +CONSOLE_CHANNEL(CC_MOTION_LID, "motionlid") +CONSOLE_CHANNEL(CC_MOTION_SENSE, "motionsense") +#ifdef HAS_TASK_PDCMD +CONSOLE_CHANNEL(CC_PD_HOST_CMD, "pdhostcm") +#endif +CONSOLE_CHANNEL(CC_PORT80, "port80") +CONSOLE_CHANNEL(CC_PWM, "pwm") +CONSOLE_CHANNEL(CC_SPI, "spi") +#ifdef CONFIG_SPS +CONSOLE_CHANNEL(CC_SPS, "sps") +#endif +CONSOLE_CHANNEL(CC_SWITCH, "switch") +CONSOLE_CHANNEL(CC_SYSTEM, "system") +CONSOLE_CHANNEL(CC_TASK, "task") +CONSOLE_CHANNEL(CC_THERMAL, "thermal") +CONSOLE_CHANNEL(CC_TPM, "tpm") +CONSOLE_CHANNEL(CC_USB, "usb") +CONSOLE_CHANNEL(CC_USBCHARGE, "usbcharge") +CONSOLE_CHANNEL(CC_USBPD, "usbpd") +CONSOLE_CHANNEL(CC_VBOOT, "vboot") +CONSOLE_CHANNEL(CC_HOOK, "hook") |