From 32b7e8875e0a08290168ec7dda040d5a5db513fa Mon Sep 17 00:00:00 2001 From: Dawid Niedzwiecki Date: Thu, 24 Sep 2020 09:20:41 +0200 Subject: core: rename atomic_clear to atomic_clear_bits Change the name of atomic_clear to atomic_clear_bits to make to name more clear - the function clears only selected bits, but the name may suggest that it clears the whole variable. It is done as a part of porting to Zephyr, where atomic_clear zeros the variable. BUG=b:169151160 BRANCH=none TEST=buildall Signed-off-by: Dawid Niedzwiecki Change-Id: I7b0b47959c6c54af40f61bca8d9baebaa0375970 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2428943 Reviewed-by: Jett Rink --- board/twinkie/sniffer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'board/twinkie') diff --git a/board/twinkie/sniffer.c b/board/twinkie/sniffer.c index f94028b572..6eb2e0824e 100644 --- a/board/twinkie/sniffer.c +++ b/board/twinkie/sniffer.c @@ -316,9 +316,10 @@ void sniffer_task(void) + (EP_PACKET_HEADER_SIZE>>1))), samples[d >> 4]+off, EP_PAYLOAD_SIZE); - deprecated_atomic_clear((uint32_t *)&free_usb, 1 << u); + deprecated_atomic_clear_bits((uint32_t *)&free_usb, + 1 << u); u = !u; - deprecated_atomic_clear(&filled_dma, 1 << d); + deprecated_atomic_clear_bits(&filled_dma, 1 << d); } led_reset_record(); -- cgit v1.2.1