From 71069893536962157b3b25330851a1c2c7cd6da5 Mon Sep 17 00:00:00 2001 From: Dawid Niedzwiecki Date: Wed, 28 Oct 2020 10:02:32 +0100 Subject: atomic: rename atomic_read_clear to atomic_clear Rename atomic_read_clear to atomic_clear to be consistent with the rest of the atomic functions, which return the previous value of the variable. BUG=b:169151160 BRANCH=none TEST=buildall Signed-off-by: Dawid Niedzwiecki Change-Id: I2588971bd7687879a28ec637cf5f6c3d27d393f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2505143 Reviewed-by: Tom Hughes Reviewed-by: Jett Rink Reviewed-by: Jack Rosenthal --- test/stm32f_rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/stm32f_rtc.c b/test/stm32f_rtc.c index fc1d0aaedb..52bccabebd 100644 --- a/test/stm32f_rtc.c +++ b/test/stm32f_rtc.c @@ -29,7 +29,7 @@ test_static int test_rtc_alarm(void) msleep(2 * rtc_delay_ms); /* Make sure the interrupt fired exactly once. */ - TEST_EQ(1, atomic_read_clear(&rtc_fired), "%d"); + TEST_EQ(1, atomic_clear(&rtc_fired), "%d"); rtc_diff_us = get_rtc_diff(&rtc, &rtc_irq); -- cgit v1.2.1