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:
parent
fb35591f1e
commit
edd9aecddf
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue