drivers: serial: nrfx: refactor for atomic_t as long

This driver aliases a regular `int` to `atomic_t` but that
should be updated to `long` with the change to `atomic_t`.

Added a comment to highlight that the variable was aliased.

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
This commit is contained in:
Christopher Friedt 2021-10-26 14:07:17 -04:00 committed by Anas Nashif
commit 7c6039a1d2

View file

@ -79,7 +79,8 @@ static struct {
bool tx_abort;
const uint8_t *volatile tx_buffer;
size_t tx_buffer_length;
/* note: this is aliased with atomic_t in uart_nrfx_poll_out() */
unsigned long tx_buffer_length;
volatile size_t tx_counter;
#if HW_FLOW_CONTROL_AVAILABLE
int32_t tx_timeout;