drivers: serial: uart_rtt: fix multi-channel

Populate the `channel` index when constructing configuration structs for
secondary RTT channels. Originally missed in #27704.

Fixes #54955.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2023-02-25 10:52:19 +10:00 committed by Anas Nashif
parent 0b0b8bff45
commit b83cf1f1ee

View file

@ -203,6 +203,7 @@ static const struct uart_driver_api uart_rtt_driver_api = {
.up_size = sizeof(uart_rtt##idx##_tx_buf), \
.down_buffer = uart_rtt##idx##_rx_buf, \
.down_size = sizeof(uart_rtt##idx##_rx_buf), \
.channel = idx, \
}
#define UART_RTT_INIT(idx, config) \