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:
parent
5e95f11afe
commit
3316cb3898
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue