drivers: serial: drop DEV_DATA/DEV_CFG usage

Stop using redundant DEV_DATA/DEV_CFG macros and use dev->data and
dev->config instead.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-01-18 16:58:32 +01:00 committed by Carles Cufí
commit 1674fec5b6
26 changed files with 700 additions and 623 deletions

View file

@ -21,10 +21,8 @@
#include <drivers/uart.h>
#include <uart_imx.h>
#define DEV_CFG(dev) \
((const struct imx_uart_config *const)(dev)->config)
#define UART_STRUCT(dev) \
((UART_Type *)(DEV_CFG(dev))->base)
((UART_Type *)((const struct imx_uart_config *const)(dev)->config)->base)
struct imx_uart_config {
UART_Type *base;