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

@ -42,8 +42,7 @@ static bool device_get_config_level(const struct shell *shell, int level)
if (dev->driver_api != NULL) {
devices = true;
shell_fprintf(shell, SHELL_NORMAL, "- %s\n",
dev->config->name);
shell_fprintf(shell, SHELL_NORMAL, "- %s\n", dev->name);
}
}
return devices;
@ -97,7 +96,7 @@ static int cmd_device_list(const struct shell *shell,
continue;
}
shell_fprintf(shell, SHELL_NORMAL, "- %s", dev->config->name);
shell_fprintf(shell, SHELL_NORMAL, "- %s", dev->name);
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
u32_t state = DEVICE_PM_ACTIVE_STATE;