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:
parent
e8c15f68b2
commit
1674fec5b6
26 changed files with 700 additions and 623 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue