Skip to content

Commit 9f42925

Browse files
de-nordicnvlsianpu
authored andcommitted
partition_manager: Rename default_flash_map to pm_flash_map
Renames the default_flash_map to pm_flash_map to differenciate it from upstream default_flash_map; also makes the pm_flash_map declaration static as it does not have to be visible outside the unit. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 900df03 commit 9f42925

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subsys/partition_manager/flash_map_partition_manager.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
#define FLASH_MAP_PM_SINGLE(x, _) FLASH_MAP_PM_ENTRY(UTIL_CAT(PM_, UTIL_CAT(PM_##x##_LABEL)))
5757
#define FLASH_MAP_PM_LIST LISTIFY(FLASH_MAP_NUM, FLASH_MAP_PM_SINGLE, ())
5858

59-
const struct flash_area default_flash_map[] = {
59+
static const struct flash_area pm_flash_map[] = {
6060
FLASH_MAP_PM_LIST
6161
};
6262

63-
const int flash_map_entries = ARRAY_SIZE(default_flash_map);
64-
const struct flash_area *flash_map = default_flash_map;
63+
const int flash_map_entries = ARRAY_SIZE(pm_flash_map);
64+
const struct flash_area *flash_map = pm_flash_map;
6565

6666
#else
6767

0 commit comments

Comments
 (0)