From d4be394be0b91a71b2f16ca476114b7470bc630f Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Wed, 23 Sep 2020 15:21:18 -0600 Subject: tree: rename atomic_* functions to deprecated_atomic_* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: Id611f663446abf00b24298a669f2ae47fef7f632 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2427507 Tested-by: Dawid Niedźwiecki Reviewed-by: Tom Hughes Reviewed-by: Jett Rink --- common/usb_pd_host_cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/usb_pd_host_cmd.c') diff --git a/common/usb_pd_host_cmd.c b/common/usb_pd_host_cmd.c index 19e74b47aa..8bdc50a0e3 100644 --- a/common/usb_pd_host_cmd.c +++ b/common/usb_pd_host_cmd.c @@ -608,7 +608,7 @@ DECLARE_HOST_COMMAND(EC_CMD_PD_CONTROL, pd_control, EC_VER_MASK(0)); /* * PD host event status for host command * Note: this variable must be aligned on 4-byte boundary because we pass the - * address to atomic_ functions which use assembly to access them. + * address to deprecated_atomic_ functions which use assembly to access them. */ static uint32_t pd_host_event_status __aligned(4); @@ -618,7 +618,7 @@ hc_pd_host_event_status(struct host_cmd_handler_args *args) struct ec_response_host_event_status *r = args->response; /* Read and clear the host event status to return to AP */ - r->status = atomic_read_clear(&pd_host_event_status); + r->status = deprecated_atomic_read_clear(&pd_host_event_status); args->response_size = sizeof(*r); return EC_RES_SUCCESS; @@ -633,7 +633,7 @@ void pd_send_host_event(int mask) if (!mask) return; - atomic_or(&pd_host_event_status, mask); + deprecated_atomic_or(&pd_host_event_status, mask); /* interrupt the AP */ host_set_single_event(EC_HOST_EVENT_PD_MCU); } -- cgit v1.2.1