summaryrefslogtreecommitdiff
path: root/common/device_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/device_event.c')
-rw-r--r--common/device_event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/device_event.c b/common/device_event.c
index 3b1fae79d0..ca13a58574 100644
--- a/common/device_event.c
+++ b/common/device_event.c
@@ -27,7 +27,7 @@ uint32_t device_get_current_events(void)
static uint32_t device_get_and_clear_events(void)
{
- return deprecated_atomic_read_clear(&device_current_events);
+ return atomic_read_clear(&device_current_events);
}
static uint32_t device_get_enabled_events(void)
@@ -43,7 +43,7 @@ void device_set_events(uint32_t mask)
if ((device_current_events & mask) != mask)
CPRINTS("device event set 0x%08x", mask);
- deprecated_atomic_or(&device_current_events, mask);
+ atomic_or(&device_current_events, mask);
/* Signal host that a device event is pending */
host_set_single_event(EC_HOST_EVENT_DEVICE);
@@ -55,7 +55,7 @@ void device_clear_events(uint32_t mask)
if (device_current_events & mask)
CPRINTS("device event clear 0x%08x", mask);
- deprecated_atomic_clear_bits(&device_current_events, mask);
+ atomic_clear_bits(&device_current_events, mask);
}
static void device_set_enabled_events(uint32_t mask)