Skip to content

Commit 23d4a14

Browse files
aescolarfabiobaltieri
authored andcommitted
drivers/eeprom/eeprom_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 12c5cf4 commit 23d4a14

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/eeprom/eeprom_simulator.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ DEVICE_DT_INST_DEFINE(0, &eeprom_sim_init, NULL,
275275

276276
#ifdef CONFIG_ARCH_POSIX
277277

278-
static void eeprom_native_posix_cleanup(void)
278+
static void eeprom_native_cleanup(void)
279279
{
280280
if ((mock_eeprom != MAP_FAILED) && (mock_eeprom != NULL)) {
281281
munmap(mock_eeprom, DT_INST_PROP(0, size));
@@ -286,7 +286,7 @@ static void eeprom_native_posix_cleanup(void)
286286
}
287287
}
288288

289-
static void eeprom_native_posix_options(void)
289+
static void eeprom_native_options(void)
290290
{
291291
static struct args_struct_t eeprom_options[] = {
292292
{ .manual = false,
@@ -304,8 +304,7 @@ static void eeprom_native_posix_options(void)
304304
native_add_command_line_opts(eeprom_options);
305305
}
306306

307-
308-
NATIVE_TASK(eeprom_native_posix_options, PRE_BOOT_1, 1);
309-
NATIVE_TASK(eeprom_native_posix_cleanup, ON_EXIT, 1);
307+
NATIVE_TASK(eeprom_native_options, PRE_BOOT_1, 1);
308+
NATIVE_TASK(eeprom_native_cleanup, ON_EXIT, 1);
310309

311310
#endif /* CONFIG_ARCH_POSIX */

0 commit comments

Comments
 (0)