drivers/serial/uart_native_tty: do not discard const qualifier
So it is clearer the data is not modified Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
98b05b3062
commit
e521d5c838
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ static int native_tty_uart_fifo_fill(const struct device *dev,
|
||||||
{
|
{
|
||||||
struct native_tty_data *data = dev->data;
|
struct native_tty_data *data = dev->data;
|
||||||
|
|
||||||
return nsi_host_write(data->fd, (void *)tx_data, size);
|
return nsi_host_write(data->fd, (const void *)tx_data, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int native_tty_uart_fifo_read(const struct device *dev,
|
static int native_tty_uart_fifo_read(const struct device *dev,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue