device: s/HAS_DYNAMIC_DEVICE_HANDLES/DEVICE_DEPS_DYMAMIC

Rename the Kconfig option to be in line with recent renamings in device
handles/dependencies.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2023-06-14 12:57:29 +02:00 committed by Carles Cufí
parent d93586f831
commit 319fbe57e1
7 changed files with 10 additions and 10 deletions

View file

@ -913,7 +913,7 @@ zephyr_get_include_directories_for_lang(C
)
if(CONFIG_HAS_DTS)
if(CONFIG_HAS_DYNAMIC_DEVICE_HANDLES)
if(CONFIG_DEVICE_DEPS_DYNAMIC)
set(dynamic_handles --dynamic-handles)
endif()

View file

@ -368,7 +368,7 @@ struct device_state {
struct pm_device;
#ifdef CONFIG_HAS_DYNAMIC_DEVICE_HANDLES
#ifdef CONFIG_DEVICE_DEPS_DYNAMIC
#define Z_DEVICE_DEPS_CONST
#else
#define Z_DEVICE_DEPS_CONST const

View file

@ -42,12 +42,12 @@
ITERABLE_SECTION_RAM(pm_device_slots, 4)
#endif
#if defined(CONFIG_HAS_DYNAMIC_DEVICE_HANDLES)
#if defined(CONFIG_DEVICE_DEPS_DYNAMIC)
SECTION_DATA_PROLOGUE(device_deps,,)
{
#include "device-deps.ld"
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
#endif /* CONFIG_HAS_DYNAMIC_DEVICE_HANDLES */
#endif /* CONFIG_DEVICE_DEPS_DYNAMIC */
ITERABLE_SECTION_RAM_GC_ALLOWED(log_mpsc_pbuf, 4)
ITERABLE_SECTION_RAM(log_msg_ptr, 4)

View file

@ -64,9 +64,9 @@
ITERABLE_SECTION_ROM(irq_alloc, 4)
#endif /* CONFIG_PCIE */
#if !defined(CONFIG_HAS_DYNAMIC_DEVICE_HANDLES)
#if !defined(CONFIG_DEVICE_DEPS_DYNAMIC)
SECTION_DATA_PROLOGUE(device_deps,,)
{
#include <zephyr/linker/device-deps.ld>
} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
#endif /* !CONFIG_HAS_DYNAMIC_DEVICE_HANDLES */
#endif /* !CONFIG_DEVICE_DEPS_DYNAMIC */

View file

@ -969,10 +969,10 @@ endmenu
menu "Device Options"
config HAS_DYNAMIC_DEVICE_HANDLES
config DEVICE_DEPS_DYNAMIC
bool
help
Hidden option that makes possible to manipulate device handles at
Hidden option that makes possible to manipulate device dependencies at
runtime.
endmenu

View file

@ -91,7 +91,7 @@ config PM_DEVICE_POWER_DOMAIN
config PM_DEVICE_POWER_DOMAIN_DYNAMIC
bool "Dynamically bind devices to a Power Pomain"
depends on PM_DEVICE_POWER_DOMAIN
select HAS_DYNAMIC_DEVICE_HANDLES
select DEVICE_DEPS_DYNAMIC
help
Enable support for dynamically bind devices to a Power Domain.

View file

@ -103,7 +103,7 @@ static int power_domain_add_or_remove(const struct device *dev,
const struct device *domain,
bool add)
{
#if defined(CONFIG_HAS_DYNAMIC_DEVICE_HANDLES)
#if defined(CONFIG_DEVICE_DEPS_DYNAMIC)
device_handle_t *rv = domain->deps;
device_handle_t dev_handle = -1;
size_t i = 0, region = 0;