diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2020-09-23 15:21:18 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-29 16:30:59 +0000 |
commit | d4be394be0b91a71b2f16ca476114b7470bc630f (patch) | |
tree | e08dd7e428be1d27b65c4bae3ba8a47e40c8b1a5 /chip/npcx | |
parent | 9513a63a626021b071199d02b7c73112eb746833 (diff) | |
download | chrome-ec-d4be394be0b91a71b2f16ca476114b7470bc630f.tar.gz |
tree: rename atomic_* functions to deprecated_atomic_*
We will move to an API compatible with Zephyr's API. See the bug for
complete rationale and plan.
BUG=b:169151160
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Id611f663446abf00b24298a669f2ae47fef7f632
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2427507
Tested-by: Dawid Niedźwiecki <dn@semihalf.com>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/npcx')
-rw-r--r-- | chip/npcx/cec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/npcx/cec.c b/chip/npcx/cec.c index b41e36e127..76fbf8279f 100644 --- a/chip/npcx/cec.c +++ b/chip/npcx/cec.c @@ -256,7 +256,7 @@ static uint32_t apb1_freq_div_10k; static void send_mkbp_event(uint32_t event) { - atomic_or(&cec_events, event); + deprecated_atomic_or(&cec_events, event); mkbp_send_event(EC_MKBP_EVENT_CEC_EVENT); } @@ -963,7 +963,7 @@ DECLARE_HOST_COMMAND(EC_CMD_CEC_GET, hc_cec_get, EC_VER_MASK(0)); static int cec_get_next_event(uint8_t *out) { - uint32_t event_out = atomic_read_clear(&cec_events); + uint32_t event_out = deprecated_atomic_read_clear(&cec_events); memcpy(out, &event_out, sizeof(event_out)); |