device: avoid casting away const from config_info pointer

Re-run the const_config_info Coccinelle patch to fix code.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-05-19 15:31:19 -05:00 committed by Carles Cufí
commit edd9aecddf

View file

@ -202,7 +202,7 @@ BUILD_ASSERT(IS_ENABLED(CONFIG_PCIE), "NS16550(s) in DT need CONFIG_PCIE");
/* convenience defines */
#define DEV_CFG(dev) \
((struct uart_ns16550_device_config * const) \
((const struct uart_ns16550_device_config * const) \
(dev)->config_info)
#define DEV_DATA(dev) \
((struct uart_ns16550_dev_data_t *)(dev)->driver_data)
@ -333,7 +333,7 @@ static int uart_ns16550_configure(struct device *dev,
const struct uart_config *cfg)
{
struct uart_ns16550_dev_data_t * const dev_data = DEV_DATA(dev);
struct uart_ns16550_device_config * const dev_cfg = DEV_CFG(dev);
const struct uart_ns16550_device_config * const dev_cfg = DEV_CFG(dev);
u8_t mdc = 0U;