summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-02-26 13:42:25 +0100
committerCommit Bot <commit-bot@chromium.org>2021-02-26 15:09:49 +0000
commit2862dd300587c2b7bcec24c4d4cea548d7e17519 (patch)
tree13193d4cabf2f23ab700480179f4b5ce0d56f209
parent623ce288f41ba027daa501877d1e39a91384c1ca (diff)
downloadchrome-ec-2862dd300587c2b7bcec24c4d4cea548d7e17519.tar.gz
servo_v4p1: Fix wrong ifdef in cc_dac command
Adding io_expander support for servo_v4p1 required moving cc_dac command to RO section only. There was a typo in ifdef which resulted in cc_dac command being unavailable. BUG=b:168385201 BRANCH=main TEST=Build firmware and flash it to servo_v4p1. On servo's console, execute command: help There should be cc_dac command listed Signed-off-by: Michał Barnaś <mb@semihalf.com> Change-Id: Icf211950bd18e4d33173b4cd679df58217069f39 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2721722 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/servo_v4p1/dacs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/servo_v4p1/dacs.c b/board/servo_v4p1/dacs.c
index d042836a2b..087a334873 100644
--- a/board/servo_v4p1/dacs.c
+++ b/board/servo_v4p1/dacs.c
@@ -101,7 +101,7 @@ int write_dac(enum dac_t dac, uint16_t value)
return EC_SUCCESS;
}
-#ifdef SECION_IS_RO
+#ifdef SECTION_IS_RO
static int cmd_cc_dac(int argc, char *argv[])
{
uint8_t dac;