Skip to content

Commit 609d6ea

Browse files
cfriedtChristopher Friedt
authored andcommitted
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>
1 parent c09dd04 commit 609d6ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/serial/uart_nrfx_uart.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ static struct {
7979

8080
bool tx_abort;
8181
const uint8_t *volatile tx_buffer;
82-
size_t tx_buffer_length;
82+
/* note: this is aliased with atomic_t in uart_nrfx_poll_out() */
83+
unsigned long tx_buffer_length;
8384
volatile size_t tx_counter;
8485
#if HW_FLOW_CONTROL_AVAILABLE
8586
int32_t tx_timeout;

0 commit comments

Comments
 (0)