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 /common/button.c | |
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 'common/button.c')
-rw-r--r-- | common/button.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/button.c b/common/button.c index 5e84256f91..1dcebae3bd 100644 --- a/common/button.c +++ b/common/button.c @@ -381,8 +381,8 @@ static void simulate_button_release_deferred(void) /* Check state for button pressed */ if (sim_button_state & BIT(buttons[button_idx].type)) { /* Set state of the button as released */ - atomic_clear(&sim_button_state, - BIT(buttons[button_idx].type)); + deprecated_atomic_clear(&sim_button_state, + BIT(buttons[button_idx].type)); button_interrupt_simulate(button_idx); } @@ -398,8 +398,8 @@ static void simulate_button(uint32_t button_mask, int press_ms) for (button_idx = 0; button_idx < BUTTON_COUNT; button_idx++) { if (button_mask & BIT(button_idx)) { /* Set state of the button as pressed */ - atomic_or(&sim_button_state, - BIT(buttons[button_idx].type)); + deprecated_atomic_or(&sim_button_state, + BIT(buttons[button_idx].type)); button_interrupt_simulate(button_idx); } |