summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/usbc/usb_pe_drp_sm.c2
-rw-r--r--zephyr/shim/include/atomic.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c
index 210bb9d1d8..5b4f8a65ba 100644
--- a/common/usbc/usb_pe_drp_sm.c
+++ b/common/usbc/usb_pe_drp_sm.c
@@ -1037,7 +1037,7 @@ void pe_notify_event(int port, uint32_t event_mask)
void pd_clear_events(int port, uint32_t clear_mask)
{
- deprecated_atomic_clear(&pe[port].events, clear_mask);
+ deprecated_atomic_clear_bits(&pe[port].events, clear_mask);
}
uint32_t pd_get_events(int port)
diff --git a/zephyr/shim/include/atomic.h b/zephyr/shim/include/atomic.h
index 249b5d0bd9..41260c1238 100644
--- a/zephyr/shim/include/atomic.h
+++ b/zephyr/shim/include/atomic.h
@@ -14,8 +14,8 @@
* definitions here are provided so we can shim-in modules using the
* deprecated APIs while the transition is under way.
*/
-static inline void deprecated_atomic_clear(uint32_t volatile *addr,
- uint32_t bits)
+static inline void deprecated_atomic_clear_bits(uint32_t volatile *addr,
+ uint32_t bits)
{
atomic_and((atomic_t *)addr, bits);
}