device: Fix structure attributes access

Since struct devconfig was merged earlier into struct device, let's fix
accessing config_info, name, ... attributes everywhere via:

grep -rlZ 'dev->config->' | xargs -0 sed -i 's/dev->config->/dev->/g'

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2020-03-09 12:49:07 +01:00 committed by Carles Cufí
commit 97326c0445
348 changed files with 1155 additions and 1174 deletions

View file

@ -22,7 +22,7 @@
#include <uart_imx.h>
#define DEV_CFG(dev) \
((const struct imx_uart_config *const)(dev)->config->config_info)
((const struct imx_uart_config *const)(dev)->config_info)
#define UART_STRUCT(dev) \
((UART_Type *)(DEV_CFG(dev))->base)
@ -55,7 +55,7 @@ struct imx_uart_data {
static int uart_imx_init(struct device *dev)
{
UART_Type *uart = UART_STRUCT(dev);
const struct imx_uart_config *config = dev->config->config_info;
const struct imx_uart_config *config = dev->config_info;
unsigned int old_level;
/* disable interrupts */