uart/ns16550: Make driver config_info structure const.

Change-Id: I57c71df60dfcfee1ea6bf461777775b928a61c1b
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-19 22:23:50 +01:00 committed by Kumar Gala
commit bad9aa1501

View file

@ -748,7 +748,7 @@ static struct uart_driver_api uart_ns16550_driver_api = {
static void irq_config_func_0(struct device *port);
#endif
static struct uart_ns16550_device_config uart_ns16550_dev_cfg_0 = {
static const struct uart_ns16550_device_config uart_ns16550_dev_cfg_0 = {
.sys_clk_freq = UART_NS16550_PORT_0_CLK_FREQ,
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
@ -800,7 +800,7 @@ static void irq_config_func_0(struct device *dev)
static void irq_config_func_1(struct device *port);
#endif
static struct uart_ns16550_device_config uart_ns16550_dev_cfg_1 = {
static const struct uart_ns16550_device_config uart_ns16550_dev_cfg_1 = {
.sys_clk_freq = UART_NS16550_PORT_1_CLK_FREQ,
#ifdef CONFIG_UART_INTERRUPT_DRIVEN