Skip to content

Commit 0e8eeb3

Browse files
aescolarfabiobaltieri
authored andcommitted
drivers/flash/flash_simulator: Remove reference to native_posix
Remove references to native_posix as the it is being deprecated. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 23d4a14 commit 0e8eeb3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/flash/flash_simulator.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,14 @@ DEVICE_DT_INST_DEFINE(0, flash_init, NULL,
437437

438438
#ifdef CONFIG_ARCH_POSIX
439439

440-
static void flash_native_posix_cleanup(void)
440+
static void flash_native_cleanup(void)
441441
{
442442
flash_mock_cleanup_native(flash_in_ram, flash_fd, mock_flash,
443443
FLASH_SIMULATOR_FLASH_SIZE, flash_file_path,
444444
flash_rm_at_exit);
445445
}
446446

447-
static void flash_native_posix_options(void)
447+
static void flash_native_options(void)
448448
{
449449
static struct args_struct_t flash_options[] = {
450450
{ .option = "flash",
@@ -476,9 +476,8 @@ static void flash_native_posix_options(void)
476476
native_add_command_line_opts(flash_options);
477477
}
478478

479-
480-
NATIVE_TASK(flash_native_posix_options, PRE_BOOT_1, 1);
481-
NATIVE_TASK(flash_native_posix_cleanup, ON_EXIT, 1);
479+
NATIVE_TASK(flash_native_options, PRE_BOOT_1, 1);
480+
NATIVE_TASK(flash_native_cleanup, ON_EXIT, 1);
482481

483482
#endif /* CONFIG_ARCH_POSIX */
484483

0 commit comments

Comments
 (0)