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:
Marcus Shawcroft 2016-10-06 19:55:27 +01:00 committed by Anas Nashif
commit 3316cb3898

View file

@ -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)