mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
serial/uart_nsim: Make config_info pointers const.
Preparation for const driver configuration data. Change-Id: Ide7c5cae8c57e3b30c7bb6611b574b86562c241d Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
committed by
Anas Nashif
parent
5e95f11afe
commit
3316cb3898
@@ -31,7 +31,7 @@
|
||||
#define NSIM_UART_STATUS 1
|
||||
|
||||
#define DEV_CFG(dev) \
|
||||
((struct uart_device_config * const)(dev)->config->config_info)
|
||||
((const struct uart_device_config * const)(dev)->config->config_info)
|
||||
|
||||
#define DATA_REG(dev) (DEV_CFG(dev)->regs + NSIM_UART_DATA)
|
||||
#define STATUS_REG(dev) (DEV_CFG(dev)->regs + NSIM_UART_STATUS)
|
||||
|
||||
Reference in New Issue
Block a user